• Pipeline support for Promoted Builds Plugin

      This enhancement request is for the Promoted Builds plugin to support Jenkins' 2.X style Pipelines.

      Pipelines are the new paradigm that Jenkins 2.X is promoting heavily – with its ability to define the build process in code, automatic build discovery, and great integration with repository systems for automatic build / testing of pull requests.

      There are many places within the new Pipeline style where the Promoted Plugin could be used to great effect:

      • builds could dynamically https://issues.jenkins-ci.org/browse/JENKINS-36089#promote and save artifacts, pushing them into other pipeline jobs
      • Users could manually promote pipeline builds that have been through some kind of QA process
      • Permalinks provided by the Promoted Builds plugin could be used in pipeline builds

      Basically, the same vast number of use cases that the Promoted Build Plugin provides today could be taken advantage of by builds defined via the Pipeline API and Jenkinsfile build definitions.

      Reference here for the API changes that are required for a plugin to be available in a Pipeline build:
      https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md

      Original reference bug:
      https://issues.jenkins-ci.org/browse/JENKINS-35376

          [JENKINS-36089] Pipeline support for Promoted Builds Plugin

          Greg Smith created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 172739 ] New: JNJira + In-Review [ 184754 ]

          In the meantime, is there any workaround or best practice to have manual promotion on build with multibranch pipeline job ?

          jeremie violas added a comment - In the meantime, is there any workaround or best practice to have manual promotion on build with multibranch pipeline job ?

          Greg Smith added a comment -

          I am waiting on this feature, which will give me something close to promotion, using pipeline input:

          https://issues.jenkins-ci.org/browse/JENKINS-27039

          Greg Smith added a comment - I am waiting on this feature, which will give me something close to promotion, using pipeline input: https://issues.jenkins-ci.org/browse/JENKINS-27039

          Yes Please. It's very hard to have build pipelines without some amount of manual promotion and testing before the next step.

          Jameson Triplett added a comment - Yes Please. It's very hard to have build pipelines without some amount of manual promotion and testing before the next step.

          tdudala added a comment -

          This support would be very useful. Currently this is our major blocking point for moving into pipelines.

          tdudala added a comment - This support would be very useful. Currently this is our major blocking point for moving into pipelines.

          Chris Z added a comment -

          jviolas As a alternative you could try to add hyperlink in build description(with GET parameters) to some promotion job under certain statement that is needed for promotion.

          Chris Z added a comment - jviolas As a alternative you could try to add hyperlink in build description(with GET parameters) to some promotion job under certain statement that is needed for promotion.

          winotu: Thanks for the tip. I'll try that.
          Right now we didn't have to use promotion since we migrate to pipelines, but the time will come. If the plugin has not been updated then, I think we will create some jobs dedicated to promotion (publish artifacts and other specific actions) that will get all necessary artifacts from the main building jobs.

          jeremie violas added a comment - winotu : Thanks for the tip. I'll try that. Right now we didn't have to use promotion since we migrate to pipelines, but the time will come. If the plugin has not been updated then, I think we will create some jobs dedicated to promotion (publish artifacts and other specific actions) that will get all necessary artifacts from the main building jobs.
          Jesse Glick made changes -
          Labels New: pipeline

          Jesse Glick added a comment -

          -1 on this. The design of Promoted Builds is bad. There could be a separate plugin offering comparable functionality but done the right way.

          Jesse Glick added a comment - -1 on this. The design of Promoted Builds is bad. There could be a separate plugin offering comparable functionality but done the right way.

            Unassigned Unassigned
            gregcovertsmith Greg Smith
            Votes:
            153 Vote for this issue
            Watchers:
            169 Start watching this issue

              Created:
              Updated: