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

Support for promoted build plugin to promote images

    XMLWordPrintable

Details

    Description

      We're trying to use the Docker Build and Publish plugin in conjunction with the Promoted builds plugin. We continuously integrate and build an image for each commit.

      We then want the option to "promote" an image for release. This will involve tagging the release with our release version.

      The git plugin provide an environment variable for this (PROMOTED_GIT_COMMIT), it would be incredibly useful for us if this plugin provided the image id (PROMOTED_DOCKER_IMAGEID).

      I'm not quite sure how this would be done but I did find the part of the promoted builds plugin that appears to take PROMOTED_GIT_COMMIT: https://github.com/jenkinsci/promoted-builds-plugin/blob/726f7a0966f54c796e6e36aca8be58f1833a15c3/src/main/java/hudson/plugins/promoted_builds/Promotion.java#L119

      Attachments

        Activity

          andy Andy Smith created issue -
          michaelneale Michael Neale made changes -
          Field Original Value New Value
          Assignee Michael Neale [ michaelneale ] Carlos Sanchez [ csanchez ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 163626 ] JNJira + In-Review [ 181315 ]

          People

            csanchez Carlos Sanchez
            andy Andy Smith
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: