My Jenkins pipeline is
pipeline {
agent any
stages {
stage('deploy') {
steps {
build(job: 'jobA')
build(job: 'jobB')
}
}
}
}
I want to run jobB
when jobA
is done. However jobA
is a deploy/release job:
- it builds a docker image and
- it deploys that docker image as a post build action.
So jobA = 1_build_docker
+ 2_deploy_docker
(as a post build action)
Problem: How can I start jobB
when 2_deploy_docker
is done? With my current pipeline, jobB
starts when 1_build_docker
is done
No comments:
Post a Comment