pipeline {
agent any
stages {
stage('Trigger Job JenkinsTest1') {
steps {
build job: 'JenkinsTest1'
}
}
stage('Trigger Job JenkinsTest2') {
steps {
build job: 'JenkinsTest2'
}
}
stage('Trigger Job JenkinsTest3') {
steps {
build job: 'JenkinsTest3'
}
}
}
}
运行结果: