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

When triggering a new build from current build page, 'Next Build' isn't shown after reloading page

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • 1.532.1-rc1, 1.540, 1.533, 1.500

    Description

      1. Create a freestyle project 'foo' with a shell build step that executes sleep 30 and save.
      2. Click 'Build Now'
      3. Go to the build's page (/job/foo/1) and wait until the build finishes.
      4. From the breadcrumb bar, select 'Build Now' from the 'foo' job's context menu.
      5. Wait a second (so the build is actually started), then reload.

      Expected result: 'Next Build' link is shown
      Actual result: It's not

      If you open the job's main page at /job/foo e.g. in another tab, then reload the build page again, the 'Next Build' link appears after reloading.

      Attachments

        Activity

          Code changed in jenkins
          User: Daniel Beck
          Path:
          test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy
          http://jenkins-ci.org/commit/jenkins/26735ec022d57ffd48340d5aa641e80b84b022c2
          Log:
          JENKINS-20662 Add test.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy http://jenkins-ci.org/commit/jenkins/26735ec022d57ffd48340d5aa641e80b84b022c2 Log: JENKINS-20662 Add test.

          Code changed in jenkins
          User: Daniel Beck
          Path:
          test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy
          http://jenkins-ci.org/commit/jenkins/b59c490a3b49d72e20007c1ca26051b6602f2401
          Log:
          JENKINS-20662 Simplify test after feedback

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy http://jenkins-ci.org/commit/jenkins/b59c490a3b49d72e20007c1ca26051b6602f2401 Log: JENKINS-20662 Simplify test after feedback

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java
          test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy
          http://jenkins-ci.org/commit/jenkins/b227088704070acf5a50486be0ff6a315e36a9c5
          Log:
          Merge branch 'JENKINS-20662' of github.com:daniel-beck/jenkins

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy http://jenkins-ci.org/commit/jenkins/b227088704070acf5a50486be0ff6a315e36a9c5 Log: Merge branch ' JENKINS-20662 ' of github.com:daniel-beck/jenkins
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html http://jenkins-ci.org/commit/jenkins/dad71f530964e99bd0ca9b8d156ddf7ad49b2e43 Log: JENKINS-20662 Noting merge of #1191. Compare: https://github.com/jenkinsci/jenkins/compare/54c5df2c34cf...dad71f530964
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #3339
          [FIXED JENKINS-20662] Establish relation to new build immediately. (Revision e6e7526021bdc8e4975c816944b931dcc5f739c0)
          JENKINS-20662 Add test. (Revision 26735ec022d57ffd48340d5aa641e80b84b022c2)
          JENKINS-20662 Simplify test after feedback (Revision b59c490a3b49d72e20007c1ca26051b6602f2401)
          JENKINS-20662 Noting merge of #1191. (Revision dad71f530964e99bd0ca9b8d156ddf7ad49b2e43)

          Result = SUCCESS
          daniel-beck : e6e7526021bdc8e4975c816944b931dcc5f739c0
          Files :

          • core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java

          daniel-beck : 26735ec022d57ffd48340d5aa641e80b84b022c2
          Files :

          • test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy

          daniel-beck : b59c490a3b49d72e20007c1ca26051b6602f2401
          Files :

          • test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy

          Jesse Glick : dad71f530964e99bd0ca9b8d156ddf7ad49b2e43
          Files :

          • changelog.html
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3339 [FIXED JENKINS-20662] Establish relation to new build immediately. (Revision e6e7526021bdc8e4975c816944b931dcc5f739c0) JENKINS-20662 Add test. (Revision 26735ec022d57ffd48340d5aa641e80b84b022c2) JENKINS-20662 Simplify test after feedback (Revision b59c490a3b49d72e20007c1ca26051b6602f2401) JENKINS-20662 Noting merge of #1191. (Revision dad71f530964e99bd0ca9b8d156ddf7ad49b2e43) Result = SUCCESS daniel-beck : e6e7526021bdc8e4975c816944b931dcc5f739c0 Files : core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java daniel-beck : 26735ec022d57ffd48340d5aa641e80b84b022c2 Files : test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy daniel-beck : b59c490a3b49d72e20007c1ca26051b6602f2401 Files : test/src/test/groovy/jenkins/model/lazy/LazyBuildMixIn_Test.groovy Jesse Glick : dad71f530964e99bd0ca9b8d156ddf7ad49b2e43 Files : changelog.html

          People

            danielbeck Daniel Beck
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: