*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
                        }
                    }
                }
            }
        }
    }



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e33902bf-e738-47d5-addf-26b8ac8e0f03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to