Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57643

Support for projectName + projectVersion instead of projectId upon synchronous:true

XMLWordPrintable

      Having the projectId obligatory when using this plugin while having synchronous: true, is an issue for automatically created pipelines. Most of the developers that are going to use this tool, know nothing of the projectId, but obviously knows their projectName and projectVersion. Since the plugin can communicate fine with a Dependency-Track server only using projectName and projectVersion for non-synchronous configuration, it should also be doable with a synchronous configuration.

       

      Executing the following pipeline step:

       

      dependencyTrackPublisher projectId: "[projectId]", projectName: "${pom.artifactId}", projectVersion: "${pom.version}", artifact: "target/bom.xml", artifactType: 'bom', synchronous: true
      

      works.

       

      Executing the following pipeline step:

       

      dependencyTrackPublisher projectName: "${pom.artifactId}", projectVersion: "${pom.version}", artifact: "target/bom.xml", artifactType: 'bom', synchronous: true
      

      does not work.

       

      Executing the following pipeline step:

       

      dependencyTrackPublisher projectName: "${pom.artifactId}", projectVersion: "${pom.version}", artifact: "target/bom.xml", artifactType: 'bom', synchronous: false
      

      works.

       

            sspringett Steve Springett
            jnz_topdanmark Jon Brohauge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: