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

Inconsistent rendering for WorkflowScript errors

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      I had a number of Pipeline Runs fail for the same reason, and what I found was that Blue Ocean displayed the same errors different, depending on the Pipeline.

      See the two attached screenshots, which are actually the same error in two different Pipelines (example pasted below)

      Branch indexing
      19:44:10 Connecting to https://api.github.com using jenkinsadmin/****** (GitHub access token for jenkinsadmin)
      Checking out git https://github.com/jenkins-infra/jenkins-infra.git into /var/jenkins_home/jobs/Infra/jobs/jenkins-infra/branches/PR-929/workspace@script to read Jenkinsfile
      Fetching changes from the remote Git repository
      Fetching without tags
      Merging remotes/origin/staging commit 01bbca41a9c44b83d2b275c4c307bdd79ab7ba38 into PR head commit 119184ac4c27c9b3a57fa90b891acf9421b9e8e8
      Merge succeeded, producing d713aa0cdc01c020beeae5029130adcd93b79b29
      Checking out Revision d713aa0cdc01c020beeae5029130adcd93b79b29 (PR-929)
      Commit message: "Merge commit '01bbca41a9c44b83d2b275c4c307bdd79ab7ba38' into HEAD"
      First time build. Skipping changelog.
      Loading library pipeline-library@master
      Attempting to resolve master from remote references...
      Found match: refs/heads/master revision 88016efbe01befaae2eeb960c732a95e4dbc1079
      Fetching changes from the remote Git repository
      Fetching without tags
      Checking out Revision 88016efbe01befaae2eeb960c732a95e4dbc1079 (master)
      Commit message: "Merge pull request #17 from oleg-nenashev/INFRA-1277"
      
      GitHub has been notified of this commit’s build result
      
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      WorkflowScript: 9: Invalid option type "timestamps". Valid option types: [ansiColor, authorizationMatrix, buildDiscarder, catchError, disableConcurrentBuilds, overrideIndexTriggers, realTimeJUnitReports, retry, script, skipDefaultCheckout, skipStagesAfterUnstable, throttle, timeout, withCredentials, withEnv, ws] @ line 9, column 9.
                 timestamps()
                 ^
      
      1 error
      
      	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
      	at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
      	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
      	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
      	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
      	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.doParse(CpsGroovyShell.java:129)
      	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:123)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:517)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:480)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:269)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:421)
      Finished: FAILURE
      

          [JENKINS-48305] Inconsistent rendering for WorkflowScript errors

          There are no comments yet on this issue.

            Unassigned Unassigned
            rtyler R. Tyler Croy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: