[JIRA] (JENKINS-57643) Support for projectName + projectVersion instead of projectId upon sunchronized=true

2 views
Skip to first unread message

jnz@topdanmark.dk (JIRA)

unread,
May 23, 2019, 9:25:02 AM5/23/19
to jenkinsc...@googlegroups.com
Jon Brohauge created an issue
 
Jenkins / Improvement JENKINS-57643
Support for projectName + projectVersion instead of projectId upon sunchronized=true
Issue Type: Improvement Improvement
Assignee: Steve Springett
Components: dependency-track-plugin
Created: 2019-05-23 13:24
Priority: Minor Minor
Reporter: Jon Brohauge

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.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages