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

In some situations, the 're-run' button will not trigger a build and not give any feedback of failure.

    • Blue Ocean 1.0-rc3

      In some situations, the 're-run' button will not trigger a build and not give any feedback. One example:

      Classic UI

      Job re-run and failed:

      Started by user 
      [admin|http://ec2-52-200-141-179.compute-1.amazonaws.com:8080/user/admin]
      17:38:37 Connecting to [https://api.github.com|https://api.github.com/] using admin/****** (Github Access Token)Obtained Jenkinsfile from 77d10641d025cf0169f61cd6e769fe72c36abf40
      
      Could not update commit status, please check if your scan credentials belong to a member of the organization or a collaborator of the repository and repo:status scope is selected
      
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 1: unable to resolve class com.cloudbees.ops.Builder
       @ line 1, column 1.
         import com.cloudbees.ops.Builder;
         ^
      
      1 error
      
      	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
      	at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:946)
      	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593)
      	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:542)
      	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
      	at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
      	at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
      	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:430)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:393)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:238)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Finished: FAILURE
      

      In the Blue Ocean UI

      No feedback on re-run button

      Job not retriggering

      Included are two screenshots with the inert buttons highlighted.

          [JENKINS-42994] In some situations, the 're-run' button will not trigger a build and not give any feedback of failure.

          James Dumay added a comment -

          jhill how was this testing performed? Was it just running and running the failed run over and over again? If so, I am not sure that this is reflective of real user behaviour.

          James Dumay added a comment - jhill how was this testing performed? Was it just running and running the failed run over and over again? If so, I am not sure that this is reflective of real user behaviour.

          Michael Neale added a comment -

          Not sure how to reproduce this, only see the description of what happened

          Michael Neale added a comment - Not sure how to reproduce this, only see the description of what happened

          Michael Neale added a comment -

          I think this can stay out of current sprint, needs more time etc. 

          Michael Neale added a comment - I think this can stay out of current sprint, needs more time etc. 

          Michael Neale added a comment -

          I have been able to see this happen. clicking in steady succession on a freestyle job (not the re-run per se, but the run button on activity). 

          bwalding has seen similar in specific environments (although in that case the run seems to be triggered, just not reported on the activity list). 

          Michael Neale added a comment - I have been able to see this happen. clicking in steady succession on a freestyle job (not the re-run per se, but the run button on activity).  bwalding has seen similar in specific environments (although in that case the run seems to be triggered, just not reported on the activity list). 

          James Dumay added a comment -

          Hurrah!

          James Dumay added a comment - Hurrah!

          Ben Walding added a comment -

          My case is for the "Run" button rather than the "Re-run"

          Also - that Jenkinsfile trace is referring to an internal CloudBees script that it shouldn't have access to (not a security risk, but I think the error is a valid error).

          I have had issues in the past with Re-run - but that was before parameters were supported - and the lack of parameters in the re-run was the root cause of the problem.

          Ben Walding added a comment - My case is for the "Run" button rather than the "Re-run" Also - that Jenkinsfile trace is referring to an internal CloudBees script that it shouldn't have access to (not a security risk, but I think the error is a valid error). I have had issues in the past with Re-run - but that was before parameters were supported - and the lack of parameters in the re-run was the root cause of the problem.

          James Dumay added a comment -

          jhill there will be a fix for this in Blue Ocean 1.1

          James Dumay added a comment - jhill there will be a fix for this in Blue Ocean 1.1

            jamesdumay James Dumay
            jhill John Hill
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: