java-tutorials/jenkins-modules/jenkins-jobs/trigger-another-job/pipeline-trigger-job

16 lines
277 B
Plaintext
Raw Normal View History

pipeline {
agent any
stages {
stage('build') {
steps {
echo "parentJob"
}
}
stage('triggerChildJob') {
steps {
build job: "childJob", wait: true
}
}
}
}