Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Introduction

(included from generic page?)

Introduction

At which pipeline level?

Our use cases: Compliance (WARN), Compliance (FAIL), and Unit Test steps (term?) concurrently.

See Parallel stages with Declarative Pipeline 1.2 (jenkins.io)

Defining Parallel Stages in Jenkins Pipeline

Something Something

pipeline {
    agent none
    stages {
        stage('Run Tests') {
            parallel {
                stage('Test On Windows') {
                    agent {
                        label "windows"
                    }
                    steps {
                        bat "run-tests.bat"
                    }
                    post {
                        always {
                            junit "**/TEST-*.xml"
                        }
                    }
                }
                stage('Test On Linux') {
                    agent {
                        label "linux"
                    }
                    steps {
                        sh "run-tests.sh"
                    }
                    post {
                        always {
                            junit "**/TEST-*.xml"
                        }
                    }
                }
            }
        }
    }
}

Parallelism in Pipeline Templates

here
  • No labels