I have a RELEASE pipeline which triggers a parameterized job: TEST (which can be triggered standalone too). If the TEST job fails I can rerun it rather than triggering the complete RELEASE job. Is there a way I can list the rerun of the TEST job to the upstream release job? So that the triggered jobs list on upstream job is also populated with the URL of rerun downstream job?
stages {
stage('RELEASE') {
failFast false
parallel {
stage("Project A") {
stages{
stage("Build") {
steps {
//steps to build project A
}
}
stage("invoke Test") {
steps{
build job: "TEST", parameters: [
string(name: 'PROJECT_NAME', value:"project A")
]
}
}
stage("Release") {
steps {
//steps to build project A
}
}
}
}
stage("Project B") {
stages{
stage("Build") {
steps {
//steps to build project B
}
}
stage("invoke Test") {
steps{
build job: "TEST", parameters: [
string(name: 'PROJECT_NAME', value:"project B")
]
}
}
stage("Release") {
steps {
//steps to build project B
}
}
}
}
}
}