Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
335 views
in Technique[技术] by (71.8m points)

jenkins - re-execute single job in jekins from parallel build

Is there any way to re-run only single job in parallel job config in Jenkins?

for example: in given picture there is a Testing stage and in testing stage there is 3 parallel jobs 1,2 and 3. if job 1 will get failed , can we re-run only job 1 again , instead of executing Testing stage again? image

Jenkinsfile:

pipeline {
agent {
    label "agent1"
}
stages {
    stage('Test') {
        parallel {
            stage('Test1') {
                steps { sh 'echo Test 1 passed' }
            }
            stage('Test2') {
                steps {
                    sh 'echo Test2 is passed'
                }
            } stage('Test3') {
                steps {
                    sh 'echo Test 3 passed'
                }
            }
        }
    }
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...