node {
stage('Build') {
build job: 'test-a', propagate: true
build job: 'test-b', propagate: true
}
}
By default propagate is set to true, so this is just to illustrate that you can ignore errors and failures.
You also need to make sure that in the jobs you invoke (test-a and test-b in this case) you need to clearly mark successes and failures as such.
node {
currentBuild.result = "SUCCESS"
}
Hope this helps.