-
Bug
-
Resolution: Duplicate
-
Critical
-
Jenkins 2.7.5
Plugins
Name ↓
Version
Enabled
ace-editor 1.1 true
analysis-core 1.92 true
ansicolor 0.5.2 true
ant 1.7 true
antisamy-markup-formatter 1.5 true
authentication-tokens 1.3 true
BlameSubversion 1.200 true
blueocean 1.2.0 true
blueocean-autofavorite 1.0.0 true
blueocean-bitbucket-pipeline 1.2.0 true
blueocean-commons 1.2.0 true
blueocean-config 1.2.0 true
blueocean-dashboard 1.2.0 true
blueocean-display-url 2.1.0 true
blueocean-events 1.2.0 true
blueocean-git-pipeline 1.2.0 true
blueocean-github-pipeline 1.2.0 true
blueocean-i18n 1.2.0 true
blueocean-jwt 1.2.0 true
blueocean-personalization 1.2.0 true
blueocean-pipeline-api-impl 1.2.0 true
blueocean-pipeline-editor 1.2.0 true
blueocean-pipeline-scm-api 1.2.0 true
blueocean-rest 1.2.0 true
blueocean-rest-impl 1.2.0 true
blueocean-web 1.2.0 true
bouncycastle-api 2.16.2 true
branch-api 2.0.11 true
build-monitor-plugin 1.12+build.201704111018 true
build-pipeline-plugin 1.5.7.1 true
build-timeout 1.18 true
claim 2.9 true
cloudbees-bitbucket-branch-source 2.2.3 true
cloudbees-folder 6.1.2 true
clover 4.8.0 true
conditional-buildstep 1.3.6 true
config-file-provider 2.16.3 true
copyartifact 1.38.1 true
coverity 1.10.0 true
credentials 2.1.14 true
credentials-binding 1.13 true
delivery-pipeline-plugin 1.0.4 true
display-url-api 2.0 true
docker-commons 1.8 true
docker-workflow 1.12 true
durable-task 1.14 true
email-ext 2.58 true
external-monitor-job 1.7 true
extreme-feedback 1.7 true
favorite 2.3.0 true
gerrit-trigger 2.25.0 true
git 3.5.1 true
git-client 2.5.0 true
git-server 1.7 true
github 1.28.0 true
github-api 1.86 true
github-branch-source 2.2.3 true
gradle 1.27.1 true
greenballs 1.15 true
groovy 2.0 true
handlebars 1.1.1 true
htmlpublisher 1.14 true
icon-shim 2.0.3 true
jackson2-api 2.7.3 true
javadoc 1.4 true
jira 2.4.2 true
job-dsl 1.64 true
job-restrictions 0.6 true
jobConfigHistory 2.17 true
jquery 1.11.2-0 true
jquery-detached 1.2.1 true
junit 1.21 true
ldap 1.16 true
lockable-resources 2.0 true
log-parser 2.0 true
mailer 1.20 true
mapdb-api 1.0.9.0 true
matrix-auth 1.7 true
matrix-project 1.11 true
maven-plugin 2.17 true
mercurial 2.1 true
metrics 3.1.2.10 true
momentjs 1.1.1 true
nodelabelparameter 1.7.2 true
pam-auth 1.3 true
parameterized-trigger 2.35.1 true
pipeline-aggregator-view 1.7 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-milestone-step 1.3.1 true
pipeline-model-api 1.1.9 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.1.9 true
pipeline-model-extensions 1.1.9 true
pipeline-multibranch-defaults 1.1 true
pipeline-rest-api 2.8 true
pipeline-stage-step 2.2 true
pipeline-stage-tags-metadata 1.1.9 true
pipeline-stage-view 2.8 true
pipeline-utility-steps 1.4.0 true
plain-credentials 1.4 true
pubsub-light 1.12 true
resource-disposer 0.7 true
rich-text-publisher-plugin 1.4 true
run-condition 1.0 true
scm-api 2.2.1 true
scm-sync-configuration 0.0.11.1-SNAPSHOT-PR49 true
script-security 1.33 true
sse-gateway 1.15 true
ssh-credentials 1.13 true
ssh-slaves 1.21 true
structs 1.10 true
subversion 2.9 true
timestamper 1.8.8 true
token-macro 2.2 true
variant 1.1 true
warnings 4.63 true
windows-slaves 1.3.1 true
workflow-aggregator 2.5 true
workflow-api 2.20 true
workflow-basic-steps 2.6 true
workflow-cps 2.39 true
workflow-cps-global-lib 2.8 true
workflow-durable-task-step 2.14 true
workflow-job 2.14.1 true
workflow-multibranch 2.16 true
workflow-scm-step 2.6 true
workflow-step-api 2.12 true
workflow-support 2.14 true
ws-cleanup 0.34 true
xfpanel 2.0.1 true
xunit 1.102 trueJenkins 2.7.5 Plugins Name ↓ Version Enabled ace-editor 1.1 true analysis-core 1.92 true ansicolor 0.5.2 true ant 1.7 true antisamy-markup-formatter 1.5 true authentication-tokens 1.3 true BlameSubversion 1.200 true blueocean 1.2.0 true blueocean-autofavorite 1.0.0 true blueocean-bitbucket-pipeline 1.2.0 true blueocean-commons 1.2.0 true blueocean-config 1.2.0 true blueocean-dashboard 1.2.0 true blueocean-display-url 2.1.0 true blueocean-events 1.2.0 true blueocean-git-pipeline 1.2.0 true blueocean-github-pipeline 1.2.0 true blueocean-i18n 1.2.0 true blueocean-jwt 1.2.0 true blueocean-personalization 1.2.0 true blueocean-pipeline-api-impl 1.2.0 true blueocean-pipeline-editor 1.2.0 true blueocean-pipeline-scm-api 1.2.0 true blueocean-rest 1.2.0 true blueocean-rest-impl 1.2.0 true blueocean-web 1.2.0 true bouncycastle-api 2.16.2 true branch-api 2.0.11 true build-monitor-plugin 1.12+build.201704111018 true build-pipeline-plugin 1.5.7.1 true build-timeout 1.18 true claim 2.9 true cloudbees-bitbucket-branch-source 2.2.3 true cloudbees-folder 6.1.2 true clover 4.8.0 true conditional-buildstep 1.3.6 true config-file-provider 2.16.3 true copyartifact 1.38.1 true coverity 1.10.0 true credentials 2.1.14 true credentials-binding 1.13 true delivery-pipeline-plugin 1.0.4 true display-url-api 2.0 true docker-commons 1.8 true docker-workflow 1.12 true durable-task 1.14 true email-ext 2.58 true external-monitor-job 1.7 true extreme-feedback 1.7 true favorite 2.3.0 true gerrit-trigger 2.25.0 true git 3.5.1 true git-client 2.5.0 true git-server 1.7 true github 1.28.0 true github-api 1.86 true github-branch-source 2.2.3 true gradle 1.27.1 true greenballs 1.15 true groovy 2.0 true handlebars 1.1.1 true htmlpublisher 1.14 true icon-shim 2.0.3 true jackson2-api 2.7.3 true javadoc 1.4 true jira 2.4.2 true job-dsl 1.64 true job-restrictions 0.6 true jobConfigHistory 2.17 true jquery 1.11.2-0 true jquery-detached 1.2.1 true junit 1.21 true ldap 1.16 true lockable-resources 2.0 true log-parser 2.0 true mailer 1.20 true mapdb-api 1.0.9.0 true matrix-auth 1.7 true matrix-project 1.11 true maven-plugin 2.17 true mercurial 2.1 true metrics 3.1.2.10 true momentjs 1.1.1 true nodelabelparameter 1.7.2 true pam-auth 1.3 true parameterized-trigger 2.35.1 true pipeline-aggregator-view 1.7 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-milestone-step 1.3.1 true pipeline-model-api 1.1.9 true pipeline-model-declarative-agent 1.1.1 true pipeline-model-definition 1.1.9 true pipeline-model-extensions 1.1.9 true pipeline-multibranch-defaults 1.1 true pipeline-rest-api 2.8 true pipeline-stage-step 2.2 true pipeline-stage-tags-metadata 1.1.9 true pipeline-stage-view 2.8 true pipeline-utility-steps 1.4.0 true plain-credentials 1.4 true pubsub-light 1.12 true resource-disposer 0.7 true rich-text-publisher-plugin 1.4 true run-condition 1.0 true scm-api 2.2.1 true scm-sync-configuration 0.0.11.1-SNAPSHOT-PR49 true script-security 1.33 true sse-gateway 1.15 true ssh-credentials 1.13 true ssh-slaves 1.21 true structs 1.10 true subversion 2.9 true timestamper 1.8.8 true token-macro 2.2 true variant 1.1 true warnings 4.63 true windows-slaves 1.3.1 true workflow-aggregator 2.5 true workflow-api 2.20 true workflow-basic-steps 2.6 true workflow-cps 2.39 true workflow-cps-global-lib 2.8 true workflow-durable-task-step 2.14 true workflow-job 2.14.1 true workflow-multibranch 2.16 true workflow-scm-step 2.6 true workflow-step-api 2.12 true workflow-support 2.14 true ws-cleanup 0.34 true xfpanel 2.0.1 true xunit 1.102 true
Jenkinsfile1:
pipeline { agent none options { skipDefaultCheckout() } stages { stage('SCM') { agent { label 'master' } when { expression { env.JOB_BASE_NAME != "íntegrator" } } steps { script { if("${env.JOB_BASE_NAME}" != 'integrator') { checkout scm } } echo "SCM stuff..." } } .....
Jenkinsfile2: (job integrator will load this one )
node('master') {
... checkout pull request ...
load Jenkinsfile1
}
For some reason the when expression doesn't get validated (even tried wit "JOB_BASE_NAME == hjehkfjhdfhkl", still the scm stage gets executed. The if statement in the script block currently does the trick, but should not be needed.
Some background: The reasons why I load jenkinsfile in another are because I work on a very large project where we splitted the tests in groups/different pipelines for convenient and maintenance and other reasons. However on a pull request, all these are controlled from one pipeline.
- duplicates
-
JENKINS-46547 Add support for defining Declarative pipelines in shared libraries
- Closed