Running a pipeline that uses a Groovy shared library. A parent job kicks off a child job by using the build api. The child job tries to load the shared library in its Jenkinsfile with
@Library('repo@branch') _
but it fails to load the library, throws a MultipleCompilationErrorsException, and fails. The parent job does not receive the MultipleCompilationErrorsException and instead receives a
FlowInterruptedException that contains no information to indicate the reason the child job failed.
Originally reported by dbitter, imported from: Child job MultipleCompilationErrorsException is not propagated to parent job when loading libraries failed
- status: Open
- priority: Minor
- component(s): pipeline-build-step-plugin, workflow-job-plugin
- resolution: Unresolved
- votes: 0
- watchers: 1
- imported: 20251212-090250
Raw content of original issue
Running a pipeline that uses a Groovy shared library. A parent job kicks off a child job by using the build api. The child job tries to load the shared library in its Jenkinsfile with
@Library('repo@branch') _
but it fails to load the library, throws a MultipleCompilationErrorsException, and fails. The parent job does not receive the MultipleCompilationErrorsException and instead receives a
FlowInterruptedException that contains no information to indicate the reason the child job failed.
environment
Jenkins: 2.447<br/>
OS: Linux - 5.10.209-198.812.amzn2.x86_64<br/>
Java: 11.0.22 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)<br/>
Plugins:<br/>
---<br/>
ace-editor:1.1<br/>
active-directory:2.35<br/>
antisamy-markup-formatter:162.v0e6ec0fcfcf6<br/>
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757<br/>
authentication-tokens:1.53.v1c90fd9191a_b_<br/>
aws-credentials:218.v1b_e9466ec5da_<br/>
aws-java-sdk-ec2:1.12.633-430.vf9a_e567a_244f<br/>
aws-java-sdk-minimal:1.12.633-430.vf9a_e567a_244f<br/>
blueocean:1.27.11<br/>
blueocean-autofavorite:1.2.5<br/>
blueocean-bitbucket-pipeline:1.27.11<br/>
blueocean-commons:1.27.11<br/>
blueocean-config:1.27.11<br/>
blueocean-core-js:1.27.11<br/>
blueocean-dashboard:1.27.11<br/>
blueocean-display-url:2.4.2<br/>
blueocean-events:1.27.11<br/>
blueocean-git-pipeline:1.27.11<br/>
blueocean-github-pipeline:1.27.11<br/>
blueocean-i18n:1.27.11<br/>
blueocean-jwt:1.27.11<br/>
blueocean-personalization:1.27.11<br/>
blueocean-pipeline-api-impl:1.27.11<br/>
blueocean-pipeline-editor:1.27.11<br/>
blueocean-pipeline-scm-api:1.27.11<br/>
blueocean-rest:1.27.11<br/>
blueocean-rest-impl:1.27.11<br/>
blueocean-web:1.27.11<br/>
bootstrap4-api:4.6.0-6<br/>
bootstrap5-api:5.3.3-1<br/>
bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9<br/>
branch-api:2.1152.v6f101e97dd77<br/>
build-timeout:1.32<br/>
caffeine-api:3.1.8-133.v17b_1ff2e0599<br/>
checks-api:2.0.2<br/>
cloudbees-bitbucket-branch-source:877.vb_b_d5243f6794<br/>
cloudbees-folder:6.928.v7c780211d66e<br/>
command-launcher:107.v773860566e2e<br/>
commons-lang3-api:3.13.0-62.v7d18e55f51e2<br/>
commons-text-api:1.11.0-95.v22a_d30ee5d36<br/>
configuration-as-code:1775.v810dc950b_514<br/>
credentials:1337.v60b_d7b_c7b_c9f<br/>
credentials-binding:657.v2b_19db_7d6e6d<br/>
data-tables-api:2.0.1-1<br/>
display-url-api:2.200.vb_9327d658781<br/>
docker-commons:439.va_3cb_0a_6a_fb_29<br/>
docker-workflow:572.v950f58993843<br/>
durable-task:550.v0930093c4b_a_6<br/>
echarts-api:5.5.0-1<br/>
favorite:2.208.v91d65b_7792a_c<br/>
font-awesome-api:6.5.1-3<br/>
git:5.2.1<br/>
git-client:4.6.0<br/>
git-server:114.v068a_c7cc2574<br/>
github:1.38.0<br/>
github-api:1.318-461.v7a_c09c9fa_d63<br/>
github-branch-source:1772.va_69eda_d018d4<br/>
gson-api:2.10.1-15.v0d99f670e0a_7<br/>
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148<br/>
hashicorp-vault-plugin:364.vf5d54b_3dc313<br/>
htmlpublisher:1.33<br/>
http_request:1.18<br/>
instance-identity:185.v303dc7c645f9<br/>
ionicons-api:56.v1b_1c8c49374e<br/>
jackson2-api:2.16.1-373.ve709c6871598<br/>
jakarta-activation-api:2.1.3-1<br/>
jakarta-mail-api:2.1.3-1<br/>
javax-activation-api:1.2.0-6<br/>
javax-mail-api:1.6.2-9<br/>
jaxb:2.3.9-1<br/>
jdk-tool:73.vddf737284550<br/>
jenkins-design-language:1.27.11<br/>
jjwt-api:0.11.5-77.v646c772fddb_0<br/>
job-dsl:1.87<br/>
joda-time-api:2.12.7-29.v5a_b_e3a_82269a_<br/>
jquery3-api:3.7.1-2<br/>
jsch:0.2.16-86.v42e010d9484b_<br/>
json-api:20240303-41.v94e11e6de726<br/>
json-path-api:2.9.0-33.v2527142f2e1d<br/>
junit:1259.v65ffcef24a_88<br/>
jwt-auth:0.3.0<br/>
kubernetes:4193.vded98e56cc25<br/>
kubernetes-client-api:6.10.0-240.v57880ce8b_0b_2<br/>
kubernetes-credentials:0.11<br/>
lockable-resources:1243.v346d600eea_24<br/>
mailer:470.vc91f60c5d8e2<br/>
mask-passwords:173.v6a_077a_291eb_5<br/>
matrix-project:822.824.v14451b_c0fd42<br/>
metrics:4.2.21-449.v6960d7c54c69<br/>
mina-sshd-api-common:2.12.0-90.v9f7fb_9fa_3d3b_<br/>
mina-sshd-api-core:2.12.0-90.v9f7fb_9fa_3d3b_<br/>
okhttp-api:4.11.0-172.vda_da_1feeb_c6e<br/>
pipeline-build-step:540.vb_e8849e1a_b_d8<br/>
pipeline-graph-analysis:216.vfd8b_ece330ca_<br/>
pipeline-groovy-lib:704.vc58b_8890a_384<br/>
pipeline-input-step:491.vb_07d21da_1a_fb_<br/>
pipeline-milestone-step:111.v449306f708b_7<br/>
pipeline-model-api:2.2175.v76a_fff0a_2618<br/>
pipeline-model-definition:2.2175.v76a_fff0a_2618<br/>
pipeline-model-extensions:2.2175.v76a_fff0a_2618<br/>
pipeline-stage-step:305.ve96d0205c1c6<br/>
pipeline-stage-tags-metadata:2.2175.v76a_fff0a_2618<br/>
pipeline-utility-steps:2.16.2<br/>
plain-credentials:179.vc5cb_98f6db_38<br/>
plugin-util-api:4.1.0<br/>
popper-api:1.16.1-3<br/>
popper2-api:2.11.6-4<br/>
prism-api:1.29.0-13<br/>
pubsub-light:1.18<br/>
resource-disposer:0.23<br/>
scm-api:683.vb_16722fb_b_80b_<br/>
script-security:1326.vdb_c154de8669<br/>
slack:684.v833089650554<br/>
snakeyaml-api:2.2-111.vc6598e30cc65<br/>
sse-gateway:1.26<br/>
ssh-credentials:322.v124df57ed808<br/>
ssh-slaves:2.948.vb_8050d697fec<br/>
sshd:3.322.v159e91f6a_550<br/>
structs:337.v1b_04ea_4df7c8<br/>
timestamper:1.26<br/>
token-macro:400.v35420b_922dcb_<br/>
trilead-api:2.141.v284120fd0c46<br/>
variant:60.v7290fc0eb_b_cd<br/>
workflow-aggregator:596.v8c21c963d92d<br/>
workflow-api:1291.v51fd2a_625da_7<br/>
workflow-basic-steps:1049.v257a_e6b_30fb_d<br/>
workflow-cps:3883.vb_3ff2a_e3eea_f<br/>
workflow-cps-global-lib:612.v55f2f80781ef<br/>
workflow-durable-task-step:1331.vc8c2fed35334<br/>
workflow-job:1400.v7fd111b_ec82f<br/>
workflow-multibranch:783.va_6eb_ef636fb_d<br/>
workflow-scm-step:415.v434365564324<br/>
workflow-step-api:657.v03b_e8115821b_<br/>
workflow-support:865.v43e78cc44e0d<br/>
ws-cleanup:0.45
2 attachments
Running a pipeline that uses a Groovy shared library. A parent job kicks off a child job by using the build api. The child job tries to load the shared library in its Jenkinsfile with
@Library('repo@branch') _but it fails to load the library, throws a MultipleCompilationErrorsException, and fails. The parent job does not receive the MultipleCompilationErrorsException and instead receives a
FlowInterruptedException that contains no information to indicate the reason the child job failed.
Originally reported by dbitter, imported from: Child job MultipleCompilationErrorsException is not propagated to parent job when loading libraries failed
Raw content of original issue
environment
2 attachments