[JIRA] (JENKINS-59111) There is no way to manually promote an Artifactory artifact using jenkins pipeline

7 views
Skip to first unread message

thefriendlycoder@gmail.com (JIRA)

unread,
Aug 27, 2019, 7:18:02 PM8/27/19
to jenkinsc...@googlegroups.com
Kevin Phillips created an issue
 
Jenkins / Bug JENKINS-59111
There is no way to manually promote an Artifactory artifact using jenkins pipeline
Issue Type: Bug Bug
Assignee: Eyal Ben Moshe
Components: artifactory-plugin
Created: 2019-08-27 23:17
Environment: Linux
Jenkins v2.189
Artifactory Plugin v3.3.2
Pipeline Plugin v2.6
Priority: Major Major
Reporter: Kevin Phillips

We have been using the Artifactory plugin in Jenkins for many years with traditional freestyle jobs, but we are now migrating our production builds to use the new Jenkins Pipeline build scripts.

One of the features many of our teams depend upon in the freestyle jobs is the ability to "promote" a build from one Artifactory repo to another. This feature appears as a simple check-box in the traditional freestyle jobs to enable build promotion support. When a build completes and artifacts are published, a link/button appears on the Jenkins build info page that allows the artifacts published by that build to be promoted (ie: copied to an alternative Artifactory repo). I can not find any examples or mention of this feature in the docs for the pipeline build scripts.

There are some examples that demonstrate how we could automate the promotion process like the example project found here:

https://github.com/jfrog/project-examples/blob/master/jenkins-examples/pipeline-examples/scripted-examples/promotion-example/Jenkinsfile

However, we can't automate the promotion process for many of our projects. Manual processes are required to vet a build before it can be deemed releaseable. As such we need to incorporate the same manual promotion operation that used to exist in the freestyle jobs with our new pipeline based jobs.

NOTE: If this feature is already supported by the Artifactory plugin feel free to clarify and provide an example of how this can be done.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

julian.schilling@continentale.de (JIRA)

unread,
Mar 9, 2020, 9:44:02 AM3/9/20
to jenkinsc...@googlegroups.com
Julian Schilling commented on Bug JENKINS-59111
 
Re: There is no way to manually promote an Artifactory artifact using jenkins pipeline

First off: I don't think this is a bug. More like a missing feature.

Have you had a look at these two https://www.jfrog.com/confluence/display/JFROG/Scripted+Pipeline+Syntax links? I think that's what you're looking for.

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

julian.schilling@continentale.de (JIRA)

unread,
Mar 9, 2020, 9:44:03 AM3/9/20
to jenkinsc...@googlegroups.com
Julian Schilling edited a comment on Bug JENKINS-59111
First off: I don't think this is a bug. More like a missing feature.

Have you had a look at [these|https://www.jfrog.com/confluence/display/JFROG/Declarative+Pipeline+Syntax] two [ links| https://www.jfrog.com/confluence/display/JFROG/Scripted+Pipeline+Syntax] links ? I think that's what you're looking for.

julian.schilling@continentale.de (JIRA)

unread,
Mar 9, 2020, 9:45:03 AM3/9/20
to jenkinsc...@googlegroups.com
Julian Schilling edited a comment on Bug JENKINS-59111
First off: I don't think this is a bug. More like a missing feature.

Have you had a look at [ + these + |https://www.jfrog.com/confluence/display/JFROG/Declarative+Pipeline+Syntax] two [ + links + |https://www.jfrog.com/confluence/display/JFROG/Scripted+Pipeline+Syntax]? I think that's what you're looking for.
Reply all
Reply to author
Forward
0 new messages