-
Bug
-
Resolution: Duplicate
-
Major
-
OS: High Sierra 10.13.1
Java: Oracle 1.8.0_131
Running Jenkins directly locally, accessed through localhost:8080 on Chrome, no container.
Repo being sourced locally (/Users/<myuser>/repo/) tracking changes properly. Using Mercurial (hg).
Plugins / Version / Enabled?
ace-editor 1.1 true
analysis-collector 1.52 true
analysis-core 1.92 true
android-emulator 2.15 true
android-lint 2.5 true
android-signing 2.2.5 true
ansicolor 0.5.2 true
ant 1.7 true
antisamy-markup-formatter 1.5 true
apache-httpcomponents-client-4-api 4.5.3-2.0 true
authentication-tokens 1.3 true
bitbucket 1.1.6 true
bitbucket-build-status-notifier 1.3.3 false
bitbucket-pullrequest-builder 1.4.26 true
blueocean 1.3.3 true
blueocean-autofavorite 1.1.0 true
blueocean-bitbucket-pipeline 1.3.3 true
blueocean-commons 1.3.3 true
blueocean-config 1.3.3 true
blueocean-dashboard 1.3.3 true
blueocean-display-url 2.1.1 true
blueocean-events 1.3.3 true
blueocean-git-pipeline 1.3.3 true
blueocean-github-pipeline 1.3.3 true
blueocean-i18n 1.3.3 true
blueocean-jira 1.3.3 true
blueocean-jwt 1.3.3 true
blueocean-personalization 1.3.3 true
blueocean-pipeline-api-impl 1.3.3 true
blueocean-pipeline-editor 1.3.3 true
blueocean-pipeline-scm-api 1.3.3 true
blueocean-rest 1.3.3 true
blueocean-rest-impl 1.3.3 true
blueocean-web 1.3.3 true
bouncycastle-api 2.16.2 true
branch-api 2.0.15 true
build-blocker-plugin 1.7.3 true
build-monitor-plugin 1.12+build.201704111018 true
build-name-setter 1.6.7 true
build-pipeline-plugin 1.5.7.1 true
build-timeout 1.19 true
build-token-root 1.4 false
built-on-column 1.1 true
changes-since-last-success 0.5 true
chef-identity 1.0.0 true
cloudbees-bitbucket-branch-source 2.2.7 true
cloudbees-folder 6.2.1 true
command-launcher 1.1 true
compress-buildlog 1.2 true
conditional-buildstep 1.3.6 true
config-file-provider 2.16.4 true
credentials 2.1.16 true
credentials-binding 1.13 true
dashboard-view 2.9.11 true
device-watcher 0.9 true
display-url-api 2.1.0 true
docker-commons 1.9 true
docker-workflow 1.14 true
durable-task 1.16 true
email-ext 2.61 true
embeddable-build-status 1.9 true
envinject 2.1.5 true
envinject-api 1.4 true
external-monitor-job 1.7 true
favorite 2.3.1 true
git 3.6.4 true
git-client 2.6.0 true
git-server 1.7 true
github 1.28.1 true
github-api 1.90 true
github-branch-source 2.3.1 true
gradle 1.28 true
handlebars 1.1.1 true
hockeyapp 1.2.2 true
htmlpublisher 1.14 true
icon-shim 2.0.3 true
ios-device-connector 1.2 false
jackson2-api 2.8.7.0 true
javadoc 1.4 true
jenkins-jira-issue-updater 1.18 false
jenkins-multijob-plugin 1.28 true
jira 2.5 true
jira-ext 0.7 false
jira-steps 1.3.0 true
jobConfigHistory 2.18 true
jquery 1.12.4-0 true
jquery-detached 1.2.1 true
jsch 0.1.54.1 true
junit 1.22.2 true
junit-attachments 1.4.2 true
junit-realtime-test-reporter 0.5 true
ldap 1.18 true
log-parser 2.0 true
mailer 1.20 true
mapdb-api 1.0.9.0 true
matrix-auth 2.2 true
matrix-project 1.12 true
maven-plugin 3.0 true
mercurial 2.2 true
momentjs 1.1.1 true
monitoring 1.70.0 true
multiple-scms 0.6 true
nodejs 1.2.4 false
open-stf 1.0.6 true
pam-auth 1.3 true
parameterized-trigger 2.35.2 true
persistent-build-queue-plugin 0.1.1 true
persistent-parameter 1.1 true
pipeline-build-step 2.5.1 true
pipeline-github-lib 1.0 true
pipeline-graph-analysis 1.5 true
pipeline-input-step 2.8 true
pipeline-maven 3.0.3 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.2.4 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.2.4 true
pipeline-model-extensions 1.2.4 true
pipeline-multibranch-defaults 1.1 true
pipeline-rest-api 2.9 true
pipeline-stage-step 2.3 true
pipeline-stage-tags-metadata 1.2.4 true
pipeline-stage-view 2.9 true
plain-credentials 1.4 true
port-allocator 1.8 true
pubsub-light 1.12 true
resource-disposer 0.8 true
run-condition 1.0 true
scm-api 2.2.5 true
script-security 1.35 true
sidebar-update-notification 1.1.0 true
simple-theme-plugin 0.3 true
slack 2.3 true
slack-uploader 1.7 true
sse-gateway 1.15 true
ssh 2.5 true
ssh-agent 1.15 true
ssh-credentials 1.13 true
ssh-slaves 1.22 true
structs 1.10 true
subversion 2.9 true
testng-plugin 1.14 true
thinBackup 1.9 true
timestamper 1.8.8 true
token-macro 2.3 true
variant 1.1 true
windows-slaves 1.3.1 true
workflow-aggregator 2.5 true
workflow-api 2.23.1 true
workflow-basic-steps 2.6 true
workflow-cps 2.41 true
workflow-cps-global-lib 2.9 true
workflow-durable-task-step 2.17 true
workflow-job 2.15 true
workflow-multibranch 2.16 true
workflow-remote-loader 1.4 true
workflow-scm-step 2.6 true
workflow-step-api 2.13 true
workflow-support 2.16 true
ws-cleanup 0.34 true
xcode-plugin 2.0.0 true
OS: High Sierra 10.13.1 Java: Oracle 1.8.0_131 Running Jenkins directly locally, accessed through localhost:8080 on Chrome, no container. Repo being sourced locally (/Users/<myuser>/repo/) tracking changes properly. Using Mercurial (hg). Plugins / Version / Enabled? ace-editor 1.1 true analysis-collector 1.52 true analysis-core 1.92 true android-emulator 2.15 true android-lint 2.5 true android-signing 2.2.5 true ansicolor 0.5.2 true ant 1.7 true antisamy-markup-formatter 1.5 true apache-httpcomponents-client-4-api 4.5.3-2.0 true authentication-tokens 1.3 true bitbucket 1.1.6 true bitbucket-build-status-notifier 1.3.3 false bitbucket-pullrequest-builder 1.4.26 true blueocean 1.3.3 true blueocean-autofavorite 1.1.0 true blueocean-bitbucket-pipeline 1.3.3 true blueocean-commons 1.3.3 true blueocean-config 1.3.3 true blueocean-dashboard 1.3.3 true blueocean-display-url 2.1.1 true blueocean-events 1.3.3 true blueocean-git-pipeline 1.3.3 true blueocean-github-pipeline 1.3.3 true blueocean-i18n 1.3.3 true blueocean-jira 1.3.3 true blueocean-jwt 1.3.3 true blueocean-personalization 1.3.3 true blueocean-pipeline-api-impl 1.3.3 true blueocean-pipeline-editor 1.3.3 true blueocean-pipeline-scm-api 1.3.3 true blueocean-rest 1.3.3 true blueocean-rest-impl 1.3.3 true blueocean-web 1.3.3 true bouncycastle-api 2.16.2 true branch-api 2.0.15 true build-blocker-plugin 1.7.3 true build-monitor-plugin 1.12+build.201704111018 true build-name-setter 1.6.7 true build-pipeline-plugin 1.5.7.1 true build-timeout 1.19 true build-token-root 1.4 false built-on-column 1.1 true changes-since-last-success 0.5 true chef-identity 1.0.0 true cloudbees-bitbucket-branch-source 2.2.7 true cloudbees-folder 6.2.1 true command-launcher 1.1 true compress-buildlog 1.2 true conditional-buildstep 1.3.6 true config-file-provider 2.16.4 true credentials 2.1.16 true credentials-binding 1.13 true dashboard-view 2.9.11 true device-watcher 0.9 true display-url-api 2.1.0 true docker-commons 1.9 true docker-workflow 1.14 true durable-task 1.16 true email-ext 2.61 true embeddable-build-status 1.9 true envinject 2.1.5 true envinject-api 1.4 true external-monitor-job 1.7 true favorite 2.3.1 true git 3.6.4 true git-client 2.6.0 true git-server 1.7 true github 1.28.1 true github-api 1.90 true github-branch-source 2.3.1 true gradle 1.28 true handlebars 1.1.1 true hockeyapp 1.2.2 true htmlpublisher 1.14 true icon-shim 2.0.3 true ios-device-connector 1.2 false jackson2-api 2.8.7.0 true javadoc 1.4 true jenkins-jira-issue-updater 1.18 false jenkins-multijob-plugin 1.28 true jira 2.5 true jira-ext 0.7 false jira-steps 1.3.0 true jobConfigHistory 2.18 true jquery 1.12.4-0 true jquery-detached 1.2.1 true jsch 0.1.54.1 true junit 1.22.2 true junit-attachments 1.4.2 true junit-realtime-test-reporter 0.5 true ldap 1.18 true log-parser 2.0 true mailer 1.20 true mapdb-api 1.0.9.0 true matrix-auth 2.2 true matrix-project 1.12 true maven-plugin 3.0 true mercurial 2.2 true momentjs 1.1.1 true monitoring 1.70.0 true multiple-scms 0.6 true nodejs 1.2.4 false open-stf 1.0.6 true pam-auth 1.3 true parameterized-trigger 2.35.2 true persistent-build-queue-plugin 0.1.1 true persistent-parameter 1.1 true pipeline-build-step 2.5.1 true pipeline-github-lib 1.0 true pipeline-graph-analysis 1.5 true pipeline-input-step 2.8 true pipeline-maven 3.0.3 true pipeline-milestone-step 1.3.1 true pipeline-model-api 1.2.4 true pipeline-model-declarative-agent 1.1.1 true pipeline-model-definition 1.2.4 true pipeline-model-extensions 1.2.4 true pipeline-multibranch-defaults 1.1 true pipeline-rest-api 2.9 true pipeline-stage-step 2.3 true pipeline-stage-tags-metadata 1.2.4 true pipeline-stage-view 2.9 true plain-credentials 1.4 true port-allocator 1.8 true pubsub-light 1.12 true resource-disposer 0.8 true run-condition 1.0 true scm-api 2.2.5 true script-security 1.35 true sidebar-update-notification 1.1.0 true simple-theme-plugin 0.3 true slack 2.3 true slack-uploader 1.7 true sse-gateway 1.15 true ssh 2.5 true ssh-agent 1.15 true ssh-credentials 1.13 true ssh-slaves 1.22 true structs 1.10 true subversion 2.9 true testng-plugin 1.14 true thinBackup 1.9 true timestamper 1.8.8 true token-macro 2.3 true variant 1.1 true windows-slaves 1.3.1 true workflow-aggregator 2.5 true workflow-api 2.23.1 true workflow-basic-steps 2.6 true workflow-cps 2.41 true workflow-cps-global-lib 2.9 true workflow-durable-task-step 2.17 true workflow-job 2.15 true workflow-multibranch 2.16 true workflow-remote-loader 1.4 true workflow-scm-step 2.6 true workflow-step-api 2.13 true workflow-support 2.16 true ws-cleanup 0.34 true xcode-plugin 2.0.0 true
Using Jenkinsfile from SCM, trying to have input parameters on Jenkins leads to the following exception (regardless of the format of the input parameter, or whether or not it has been added manually to Jenkins beforehand):
Checking out hg /Users/<user>/repo default into /Users/<user>/.jenkins/workspace/pipe@script to read Jenkinsfile Acquired master cache lock. [08AD0670BF75046CD08C0E2E69832FD1A73F4D57-repo-hg] $ /usr/local//bin/hg --config ******** pull pulling from /Users/<user>/repo searching for changes adding changesets adding manifests adding file changes added 1 changesets with 1 changes to 1 files (run 'hg update' to get a working copy) Master cache lock released. [pipe@script] $ /usr/local//bin/hg --config ******** pull --rev default /Users/<user>/.jenkins/hgcache/08AD0670BF75046CD08C0E2E69832FD1A73F4D57-repo-hg pulling from /Users/<user>/.jenkins/hgcache/08AD0670BF75046CD08C0E2E69832FD1A73F4D57-repo-hg no changes found [pipe@script] $ /usr/local//bin/hg --config ******** update --clean --rev default 1 files updated, 0 files merged, 0 files removed, 0 files unresolved [pipe@script] $ /usr/local//bin/hg --config ******** log --rev . --template {node} [pipe@script] $ /usr/local//bin/hg --config ******** log --rev . --template {rev} [pipe@script] $ /usr/local//bin/hg --config ******** log --rev 0f607364c15cdf4398a90f9c111135ce04912d8e --template exists\n exists [pipe@script] $ /usr/local//bin/hg --config ******** log --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev "ancestors('default') and not ancestors(0f607364c15cdf4398a90f9c111135ce04912d8e)" --encoding UTF-8 --encodingmode replace [pipe@script] $ /usr/local//bin/hg --config ******** log --rev . --template {node} [pipe@script] $ /usr/local//bin/hg --config ******** log --rev . --template {rev} Loading library repo-shared@default Acquired master cache lock. [08AD0670BF75046CD08C0E2E69832FD1A73F4D57-repo-hg] $ /usr/local//bin/hg --config ******** pull pulling from /Users/<user>/repo searching for changes no changes found Master cache lock released. [repo-shared] $ /usr/local//bin/hg --config ******** pull --rev default /Users/<user>/.jenkins/hgcache/08AD0670BF75046CD08C0E2E69832FD1A73F4D57-repo-hg pulling from /Users/<user>/.jenkins/hgcache/08AD0670BF75046CD08C0E2E69832FD1A73F4D57-repo-hg no changes found [repo-shared] $ /usr/local//bin/hg --config ******** update --clean --rev default 1 files updated, 0 files merged, 0 files removed, 0 files unresolved [repo-shared] $ /usr/local//bin/hg --config ******** --config extensions.purge= clean --all [repo-shared] $ /usr/local//bin/hg --config ******** log --rev . --template {node} [repo-shared] $ /usr/local//bin/hg --config ******** log --rev . --template {rev} [repo-shared] $ /usr/local//bin/hg --config ******** log --rev 0f607364c15cdf4398a90f9c111135ce04912d8e --template exists\n exists [repo-shared] $ /usr/local//bin/hg --config ******** log --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev "ancestors('default') and not ancestors(0f607364c15cdf4398a90f9c111135ce04912d8e)" --encoding UTF-8 --encodingmode replace [repo-shared] $ /usr/local//bin/hg --config ******** log --rev . --template {node} [repo-shared] $ /usr/local//bin/hg --config ******** log --rev . --template {rev} [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] echo BUILD RESULT-02: null [Pipeline] } [Pipeline] // stage [Pipeline] End of Pipeline hudson.remoting.ProxyException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{name=booleanParam, args={defaultValue=true, description=, name=flag}}' with class 'java.util.LinkedHashMap' to class 'hudson.model.Describable' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: hudson.model.Describable(java.util.LinkedHashMap) at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:403) at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319) at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603) at org.jenkinsci.plugins.pipeline.modeldefinition.Utils$_instantiateList_closure6.doCall(Utils.groovy:445) at sun.reflect.GeneratedMethodAccessor971.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at groovy.lang.Closure.call(Closure.java:414) at groovy.lang.Closure.call(Closure.java:430) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2040) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2025) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2066) at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods.java:915) at sun.reflect.GeneratedMethodAccessor652.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:54) at org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:56) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:47) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:57) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at org.jenkinsci.plugins.pipeline.modeldefinition.Utils.instantiateList(Utils.groovy:441) at sun.reflect.GeneratedMethodAccessor691.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:151) at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:102) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:214) at org.jenkinsci.plugins.pipeline.modeldefinition.Utils.updateJobProperties(Utils.groovy:473) at org.jenkinsci.plugins.pipeline.modeldefinition.Utils$updateJobProperties$7.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:19) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeProperties(jar:file:/Users/mehdychaillou/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:620) at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(jar:file:/Users/mehdychaillou/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:65) at WorkflowScript.run(WorkflowScript:4) at __cps.transform__(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82) at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:76) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66) at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:122) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:19) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:35) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:32) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:32) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:330) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:82) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:242) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:230) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Finished: FAILURE
The rest of the pipeline executes itself, but the total build fails, and most obviously, I can't use input parameters.
The pipeline:
pipeline { agent any options { timeout(time: 60, unit: 'MINUTES') } parameters { booleanParam(defaultValue: true, description: '', name: 'flag') string(defaultValue: '', description: '', name: 'SOME_STRING') } tools { maven 'M3' maven 'mvn3.5.2' jdk 'jdk8' } stages { stage('Test') { steps { print "BUILD RESULT-01: " + currentBuild.result } } } post { always { print "BUILD RESULT-02: "+currentBuild.result } } }
Let me know if there's anything else I can provide for additional info.
- duplicates
-
JENKINS-48115 disableConcurrentBuilds() within an options block is now broken, throws Groovy exception during Jenkinsfile parsing
- Closed