-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkin Version: 2.164.3
Installed plugins:
ace-editor:1.1
antisamy-markup-formatter:1.5
apache-httpcomponents-client-4-api:4.5.5-3.0
authentication-tokens:1.3
authorize-project:1.3.0
branch-api:2.4.0
build-timeout:1.19
cloudbees-folder:6.8
configuration-as-code-support:1.15
configuration-as-code:1.15
credentials-binding:1.18
credentials:2.1.18
display-url-api:2.3.1
docker-commons:1.15
docker-workflow:1.18
durable-task:1.29
email-ext:2.66
git-client:2.7.7
git-server:1.7
git:3.10.0
github-api:1.95
github-branch-source:2.5.2
github:1.29.4
gitlab-plugin:1.5.12
greenballs:1.15
handlebars:1.1.1
jackson2-api:2.9.8
job-dsl:1.74
jquery-detached:1.2.1
jsch:0.1.55
junit:1.28
kubernetes-credentials:0.4.0
kubernetes:1.15.4
ldap:1.20
lockable-resources:2.5
mailer:1.23
matrix-auth:2.4.2
matrix-project:1.14
momentjs:1.1.1
oic-auth:1.6
pipeline-build-step:2.9
pipeline-github-lib:1.0
pipeline-graph-analysis:1.10
pipeline-input-step:2.10
pipeline-milestone-step:1.3.1
pipeline-model-api:1.3.8
pipeline-model-declarative-agent:1.1.1
pipeline-model-definition:1.3.8
pipeline-model-extensions:1.3.8
pipeline-rest-api:2.11
pipeline-stage-step:2.3
pipeline-stage-tags-metadata:1.3.8
pipeline-stage-view:2.11
pipeline-utility-steps:2.3.0
plain-credentials:1.5
resource-disposer:0.12
scm-api:2.4.1
script-security:1.58
simple-theme-plugin:0.5.1
slack:2.23
sonar:2.8.1
ssh-credentials:1.16
structs:1.19
timestamper:1.9
token-macro:2.7
variant:1.2
workflow-aggregator:2.6
workflow-api:2.34
workflow-basic-steps:2.16
workflow-cps-global-lib:2.13
workflow-cps:2.68
workflow-durable-task-step:2.30
workflow-job:2.32
workflow-multibranch:2.21
workflow-scm-step:2.7
workflow-step-api:2.19
workflow-support:3.3
ws-cleanup:0.37
Browser : Chrome
OS: Ubuntu 18.04Jenkin Version: 2.164.3 Installed plugins: ace-editor:1.1 antisamy-markup-formatter:1.5 apache-httpcomponents-client-4-api:4.5.5-3.0 authentication-tokens:1.3 authorize-project:1.3.0 branch-api:2.4.0 build-timeout:1.19 cloudbees-folder:6.8 configuration-as-code-support:1.15 configuration-as-code:1.15 credentials-binding:1.18 credentials:2.1.18 display-url-api:2.3.1 docker-commons:1.15 docker-workflow:1.18 durable-task:1.29 email-ext:2.66 git-client:2.7.7 git-server:1.7 git:3.10.0 github-api:1.95 github-branch-source:2.5.2 github:1.29.4 gitlab-plugin:1.5.12 greenballs:1.15 handlebars:1.1.1 jackson2-api:2.9.8 job-dsl:1.74 jquery-detached:1.2.1 jsch:0.1.55 junit:1.28 kubernetes-credentials:0.4.0 kubernetes:1.15.4 ldap:1.20 lockable-resources:2.5 mailer:1.23 matrix-auth:2.4.2 matrix-project:1.14 momentjs:1.1.1 oic-auth:1.6 pipeline-build-step:2.9 pipeline-github-lib:1.0 pipeline-graph-analysis:1.10 pipeline-input-step:2.10 pipeline-milestone-step:1.3.1 pipeline-model-api:1.3.8 pipeline-model-declarative-agent:1.1.1 pipeline-model-definition:1.3.8 pipeline-model-extensions:1.3.8 pipeline-rest-api:2.11 pipeline-stage-step:2.3 pipeline-stage-tags-metadata:1.3.8 pipeline-stage-view:2.11 pipeline-utility-steps:2.3.0 plain-credentials:1.5 resource-disposer:0.12 scm-api:2.4.1 script-security:1.58 simple-theme-plugin:0.5.1 slack:2.23 sonar:2.8.1 ssh-credentials:1.16 structs:1.19 timestamper:1.9 token-macro:2.7 variant:1.2 workflow-aggregator:2.6 workflow-api:2.34 workflow-basic-steps:2.16 workflow-cps-global-lib:2.13 workflow-cps:2.68 workflow-durable-task-step:2.30 workflow-job:2.32 workflow-multibranch:2.21 workflow-scm-step:2.7 workflow-step-api:2.19 workflow-support:3.3 ws-cleanup:0.37 Browser : Chrome OS: Ubuntu 18.04
-
-
workflow-basic-steps 2.18
Used pipeline:
pipeline { agent any stages { stage('catch error') { steps { catchError(buildResult: 'SUCCESS') { sh "exit 1" } } } stage('summary') { steps { echo "here comes the summary..." } } } }
Result:
Running in Durability level: MAX_SURVIVABILITY org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 6: Expecting "class hudson.model.Result" for parameter "buildResult" but got "SUCCESS" of type class java.lang.String instead @ line 6, column 41. catchError(buildResult: 'SUCCESS') ^ 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:133) at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:126) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:561) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:522) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:320) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Finished: FAILURE
- relates to
-
JENKINS-45579 Step to set stage or parallel status
- Resolved
- links to