There is no chaining mechanism I am aware of built in.
If you want to chain 2 pipeline jobs 'P1' and 'P2' you can just build P2 from a 'post' section of the last stage on P1.
Your pipeline code would need to look something like this:
pipeline {
agent any
stages {
stage('First') {
steps {
echo 'Pipeline P1 first stage'
}
}
stage('Last') {
steps {
echo 'Pipeline P1 last stage'
}
post {
always {
build 'P2'
}
}
}
}
post {
failure {
echo "Pipeline chain failed"
}
}
}
You can probably build it in the BlueOcean pipeline editor somehow.
--Bill