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

Allow a previous build to be promoted while new build is in progress

      We are using Jenkins jobs to build our Java apps. The build creates packages which we store in the build archive. Each build has its own archive with the packages from that particular build.

      We deploy these packages to various enviroments using promotions via the promoted builds plugin.

      For example, we trigger the "QA1" promotion of Build #25 to deploy artifacts from Build 25's archive to our QA1 environment. Triggering the "QA2" promotion of this same build deploys the same artifacts to the QA2 environment, and so on.

      Sometimes we'd like to promote artifacts from build #25 concurrently with the execution of a new build (say, build #30), but Jenkins will not do this for us. Instead, Jenkins pauses the promotion of the earlier build until the new build completes, or gets aborted.

      For example, if build # 101 is in progress and I try to trigger a promotion of build #99, Jenkins will not start the promotion of build #99 until build #101 completes or is aborted.

      It would be great if I could have promotions of earlier builds running concurrently with more recent builds.

      Thanks!

          [JENKINS-26819] Allow a previous build to be promoted while new build is in progress

          Kari Sivonen added a comment -

          And same issue when wanted to get promotion before build is end.

          E.g we have a job which trigger build, static analyses and some tests. I like to get promotion after static analysis and second promotion after build. Promotion starts but there is failure mark in promotion and log is almost empty until build ends and then promotion happens.

          So promotio is started, but for some reason it will never get done before actual build job is finished. And same if next build is already started, it wait until it is end.

          Kari Sivonen added a comment - And same issue when wanted to get promotion before build is end. E.g we have a job which trigger build, static analyses and some tests. I like to get promotion after static analysis and second promotion after build. Promotion starts but there is failure mark in promotion and log is almost empty until build ends and then promotion happens. So promotio is started, but for some reason it will never get done before actual build job is finished. And same if next build is already started, it wait until it is end.

          Jason Swager added a comment -

          I've observed the same behavior - and have the same request. Can a promotion not block the job from running? And the job not block a promotion?

          Jason Swager added a comment - I've observed the same behavior - and have the same request. Can a promotion not block the job from running? And the job not block a promotion?

          Same behaviour observed here. This is quite frustrating because in our setup, the promotion is only a very fancy way of simply triggering another job − meaning the promotion job does close to nothing by itself. Which makes even more frustrating to see it wait for ~20 minutes if a build happens to have started just before.

          Thanks!

          Jean-Frédéric added a comment - Same behaviour observed here. This is quite frustrating because in our setup, the promotion is only a very fancy way of simply triggering another job − meaning the promotion job does close to nothing by itself. Which makes even more frustrating to see it wait for ~20 minutes if a build happens to have started just before. Thanks!

            Unassigned Unassigned
            steve_mitchell Steve Mitchell
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: