Update upstream job in case of downstream job is rerun

8 views
Skip to first unread message

Mahima Mishra

unread,
Sep 13, 2018, 8:33:41 AM9/13/18
to Jenkins Users
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
}
}
}
}
}
}



Reply all
Reply to author
Forward
0 new messages