-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 2.138
Plugins:
ace-editor 1.1 true
ansicolor 0.5.3-SNAPSHOT (private-350138e2-dgoyette) true
ant 1.8 true
antisamy-markup-formatter 1.5 true
any-buildstep 0.1 true
apache-httpcomponents-client-4-api 4.5.5-3.0 true
authentication-tokens 1.3 true
badge 1.5 true
blueocean 1.8.0 true
blueocean-autofavorite 1.2.2 true
blueocean-bitbucket-pipeline 1.8.0 true
blueocean-commons 1.8.0 true
blueocean-config 1.8.0 true
blueocean-core-js 1.8.0 true
blueocean-dashboard 1.8.0 true
blueocean-display-url 2.2.0 true
blueocean-events 1.8.0 true
blueocean-git-pipeline 1.8.0 true
blueocean-github-pipeline 1.8.0 true
blueocean-i18n 1.8.0 true
blueocean-jira 1.8.0 true
blueocean-jwt 1.8.0 true
blueocean-personalization 1.8.0 true
blueocean-pipeline-api-impl 1.8.0 true
blueocean-pipeline-editor 1.8.0 true
blueocean-pipeline-scm-api 1.8.0 true
blueocean-rest 1.8.0 true
blueocean-rest-impl 1.8.0 true
blueocean-web 1.8.0 true
bouncycastle-api 2.16.3 true
branch-api 2.0.20 true
build-monitor-plugin 1.12+build.201805070054 true
build-timeout 1.19 true
buildresult-trigger 0.17 true
buildtriggerbadge 2.9 true
built-on-column 1.1 true
categorized-view 1.10 true
cloudbees-bitbucket-branch-source 2.2.12 true
cloudbees-folder 6.5.1 true
collapsing-console-sections 1.7.0 true
command-launcher 1.2 true
compact-columns 1.10 true
conditional-buildstep 1.3.6 true
config-file-provider 2.18 true
copyartifact 1.41 true
credentials 2.1.18 true
credentials-binding 1.16 true
cron_column 1.4 true
cvs 2.14 true
dashboard-view 2.9.11 true
display-url-api 2.2.0 true
docker-commons 1.13 true
docker-workflow 1.17 true
durable-task 1.25 true
dynamic-axis 1.0.3 true
dynamic_extended_choice_parameter 1.0.1 false
elastic-axis 1.2 true
email-ext 2.63 true
email-ext-recipients-column 1.0 true
envinject 2.1.6 true
envinject-api 1.5 true
excludeMatrixParent 1.1 true
extended-choice-parameter 0.76 true
external-monitor-job 1.7 true
extra-columns 1.20 true
ez-templates 1.3.2 true
ezwall 0.3 true
favorite 2.3.2 true
filesystem_scm 2.1 true
flexible-publish 0.15.2 true
fstrigger 0.39 true
git 3.9.1 true
git-client 2.7.3 true
git-parameter 0.9.3 true
git-server 1.7 true
github 1.29.2 true
github-api 1.92 true
github-branch-source 2.3.6 true
groovy 2.0 true
groovy-postbuild 2.4.1 true
handlebars 1.1.1 true
handy-uri-templates-2-api 2.1.6-1.0 true
htmlpublisher 1.16 true
icon-shim 2.0.3 true
ivytrigger 0.34 true
jackson2-api 2.8.11.3 true
javadoc 1.4 true
jdk-tool 1.1 true
jenkins-design-language 1.8.0 true
jenkins-multijob-plugin 1.31 true
jira 3.0.0 true
job-dsl 1.70 true
job-restrictions 0.7 true
jobConfigHistory 2.18 true
jquery 1.12.4-0 true
jquery-detached 1.2.1 true
jsch 0.1.54.2 true
junit 1.24 true
ldap 1.20 true
mailer 1.21 true
managed-scripts 1.4 true
mapdb-api 1.0.9.0 true
mashup-portlets-plugin 1.0.9 true
matrix-auth 2.3 true
matrix-combinations-parameter 1.3.0 true
matrix-project 1.13 true
maven-plugin 3.1.2 true
mercurial 2.4 true
metrics 4.0.2.2 true
mission-control-view 0.9.14 true
modernstatus 1.2 true
momentjs 1.1.1 true
monitoring 1.73.1 true
multi-slave-config-plugin 1.2.0 true
next-executions 1.0.12 true
nodelabelparameter 1.7.2 true
pam-auth 1.3 true
parameterized-trigger 2.35.2 true
percentage-du-node-column 0.1.0 true
permissive-script-security 0.3 true
pipeline-build-step 2.7 true
pipeline-github-lib 1.0 true
pipeline-graph-analysis 1.7 true
pipeline-input-step 2.8 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.3.1 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.3.1 true
pipeline-model-extensions 1.3.1 true
pipeline-multibranch-defaults 1.1 true
pipeline-rest-api 2.10 true
pipeline-stage-step 2.3 true
pipeline-stage-tags-metadata 1.3.1 true
pipeline-stage-view 2.10 true
pipeline-utility-steps 2.1.0 true
plain-credentials 1.4 true
plugin-usage-plugin 0.4 true
postbuildscript 2.7.0 true
PrioritySorter 3.6.0 true
progress-bar-column-plugin 1.0 true
promoted-builds 3.2 true
pubsub-light 1.12 true
purge-build-queue-plugin 1.0 true
rebuild 1.28 true
resource-disposer 0.12 true
role-strategy 2.8.2 true
run-condition 1.0 true
scm-api 2.2.7 true
script-security 1.44 true
scriptler 2.9 true
sectioned-view 1.24 true
show-build-parameters 1.0 true
sidebar-link 1.9.1 true
simple-theme-plugin 0.4 true
slack 2.3 true
sse-gateway 1.15 true
ssh-agent 1.16 true
ssh-credentials 1.14 true
ssh-slaves 1.26 true
startup-trigger-plugin 2.9.3 true
structs 1.14 true
subversion 2.11.1 true
test-results-analyzer 0.3.5 true
test-stability 2.3 true
timestamper 1.8.10 true
token-macro 2.5 true
translation 1.16 true
uno-choice 2.1 true
URLSCM 1.6 true
urltrigger 0.44 true
variant 1.1 true
versioncolumn 2.0 true
view-job-filters 1.27 true
windows-slaves 1.3.1 true
workflow-aggregator 2.5 true
workflow-api 2.29 true
workflow-basic-steps 2.9 true
workflow-cps 2.54 true
workflow-cps-global-lib 2.9 true
workflow-durable-task-step 2.20 true
workflow-job 2.24 true
workflow-multibranch 2.20 true
workflow-scm-step 2.6 true
workflow-step-api 2.16 true
workflow-support 2.20 true
ws-cleanup 0.34 true
xunit 2.2.2 trueJenkins ver. 2.138 Plugins: ace-editor 1.1 true ansicolor 0.5.3-SNAPSHOT (private-350138e2-dgoyette) true ant 1.8 true antisamy-markup-formatter 1.5 true any-buildstep 0.1 true apache-httpcomponents-client-4-api 4.5.5-3.0 true authentication-tokens 1.3 true badge 1.5 true blueocean 1.8.0 true blueocean-autofavorite 1.2.2 true blueocean-bitbucket-pipeline 1.8.0 true blueocean-commons 1.8.0 true blueocean-config 1.8.0 true blueocean-core-js 1.8.0 true blueocean-dashboard 1.8.0 true blueocean-display-url 2.2.0 true blueocean-events 1.8.0 true blueocean-git-pipeline 1.8.0 true blueocean-github-pipeline 1.8.0 true blueocean-i18n 1.8.0 true blueocean-jira 1.8.0 true blueocean-jwt 1.8.0 true blueocean-personalization 1.8.0 true blueocean-pipeline-api-impl 1.8.0 true blueocean-pipeline-editor 1.8.0 true blueocean-pipeline-scm-api 1.8.0 true blueocean-rest 1.8.0 true blueocean-rest-impl 1.8.0 true blueocean-web 1.8.0 true bouncycastle-api 2.16.3 true branch-api 2.0.20 true build-monitor-plugin 1.12+build.201805070054 true build-timeout 1.19 true buildresult-trigger 0.17 true buildtriggerbadge 2.9 true built-on-column 1.1 true categorized-view 1.10 true cloudbees-bitbucket-branch-source 2.2.12 true cloudbees-folder 6.5.1 true collapsing-console-sections 1.7.0 true command-launcher 1.2 true compact-columns 1.10 true conditional-buildstep 1.3.6 true config-file-provider 2.18 true copyartifact 1.41 true credentials 2.1.18 true credentials-binding 1.16 true cron_column 1.4 true cvs 2.14 true dashboard-view 2.9.11 true display-url-api 2.2.0 true docker-commons 1.13 true docker-workflow 1.17 true durable-task 1.25 true dynamic-axis 1.0.3 true dynamic_extended_choice_parameter 1.0.1 false elastic-axis 1.2 true email-ext 2.63 true email-ext-recipients-column 1.0 true envinject 2.1.6 true envinject-api 1.5 true excludeMatrixParent 1.1 true extended-choice-parameter 0.76 true external-monitor-job 1.7 true extra-columns 1.20 true ez-templates 1.3.2 true ezwall 0.3 true favorite 2.3.2 true filesystem_scm 2.1 true flexible-publish 0.15.2 true fstrigger 0.39 true git 3.9.1 true git-client 2.7.3 true git-parameter 0.9.3 true git-server 1.7 true github 1.29.2 true github-api 1.92 true github-branch-source 2.3.6 true groovy 2.0 true groovy-postbuild 2.4.1 true handlebars 1.1.1 true handy-uri-templates-2-api 2.1.6-1.0 true htmlpublisher 1.16 true icon-shim 2.0.3 true ivytrigger 0.34 true jackson2-api 2.8.11.3 true javadoc 1.4 true jdk-tool 1.1 true jenkins-design-language 1.8.0 true jenkins-multijob-plugin 1.31 true jira 3.0.0 true job-dsl 1.70 true job-restrictions 0.7 true jobConfigHistory 2.18 true jquery 1.12.4-0 true jquery-detached 1.2.1 true jsch 0.1.54.2 true junit 1.24 true ldap 1.20 true mailer 1.21 true managed-scripts 1.4 true mapdb-api 1.0.9.0 true mashup-portlets-plugin 1.0.9 true matrix-auth 2.3 true matrix-combinations-parameter 1.3.0 true matrix-project 1.13 true maven-plugin 3.1.2 true mercurial 2.4 true metrics 4.0.2.2 true mission-control-view 0.9.14 true modernstatus 1.2 true momentjs 1.1.1 true monitoring 1.73.1 true multi-slave-config-plugin 1.2.0 true next-executions 1.0.12 true nodelabelparameter 1.7.2 true pam-auth 1.3 true parameterized-trigger 2.35.2 true percentage-du-node-column 0.1.0 true permissive-script-security 0.3 true pipeline-build-step 2.7 true pipeline-github-lib 1.0 true pipeline-graph-analysis 1.7 true pipeline-input-step 2.8 true pipeline-milestone-step 1.3.1 true pipeline-model-api 1.3.1 true pipeline-model-declarative-agent 1.1.1 true pipeline-model-definition 1.3.1 true pipeline-model-extensions 1.3.1 true pipeline-multibranch-defaults 1.1 true pipeline-rest-api 2.10 true pipeline-stage-step 2.3 true pipeline-stage-tags-metadata 1.3.1 true pipeline-stage-view 2.10 true pipeline-utility-steps 2.1.0 true plain-credentials 1.4 true plugin-usage-plugin 0.4 true postbuildscript 2.7.0 true PrioritySorter 3.6.0 true progress-bar-column-plugin 1.0 true promoted-builds 3.2 true pubsub-light 1.12 true purge-build-queue-plugin 1.0 true rebuild 1.28 true resource-disposer 0.12 true role-strategy 2.8.2 true run-condition 1.0 true scm-api 2.2.7 true script-security 1.44 true scriptler 2.9 true sectioned-view 1.24 true show-build-parameters 1.0 true sidebar-link 1.9.1 true simple-theme-plugin 0.4 true slack 2.3 true sse-gateway 1.15 true ssh-agent 1.16 true ssh-credentials 1.14 true ssh-slaves 1.26 true startup-trigger-plugin 2.9.3 true structs 1.14 true subversion 2.11.1 true test-results-analyzer 0.3.5 true test-stability 2.3 true timestamper 1.8.10 true token-macro 2.5 true translation 1.16 true uno-choice 2.1 true URLSCM 1.6 true urltrigger 0.44 true variant 1.1 true versioncolumn 2.0 true view-job-filters 1.27 true windows-slaves 1.3.1 true workflow-aggregator 2.5 true workflow-api 2.29 true workflow-basic-steps 2.9 true workflow-cps 2.54 true workflow-cps-global-lib 2.9 true workflow-durable-task-step 2.20 true workflow-job 2.24 true workflow-multibranch 2.20 true workflow-scm-step 2.6 true workflow-step-api 2.16 true workflow-support 2.20 true ws-cleanup 0.34 true xunit 2.2.2 true
When running an EnvInject wrapper script, the EnvInject plugin seems to catch all exception types, turning them into EnvInject exceptions. I'd prefer to be able to raise a hudson.AbortException, to abort a job cleanly.
ERROR: SEVERE ERROR occurs
org.jenkinsci.lib.envinject.EnvInjectException: Failed to evaluate the script
at org.jenkinsci.plugins.envinject.service.EnvInjectEnvVars.executeGroovyScript(EnvInjectEnvVars.java:232)
at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentJobPropertyObject(EnvInjectListener.java:187)
at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:49)
at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:542)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:462)
at hudson.model.Run.execute(Run.java:1815)
at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Caused by: hudson.AbortException: CUSTOM ABORT MESSAGE HERE
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
at org.kohsuke.groovy.sandbox.impl.Checker$3.call(Checker.java:200)
at org.kohsuke.groovy.sandbox.GroovyInterceptor.onNewInstance(GroovyInterceptor.java:42)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onNewInstance(SandboxInterceptor.java:146)
at org.kohsuke.groovy.sandbox.impl.Checker$3.call(Checker.java:197)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedConstructor(Checker.java:202)
at org.kohsuke.groovy.sandbox.impl.Checker$checkedConstructor$3.callStatic(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:56)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:194)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:214)
at Script1.run(Script1.groovy:108)