Running stages in parallel with Jenkins workflow / pipeline

前端 未结 5 635
渐次进展
渐次进展 2020-12-04 15:46

Please note: the question is based on the old, now called \"scripted\" pipeline format. When using \"declarative pipelines\", parallel blocks

5条回答
  •  执念已碎
    2020-12-04 15:55

    As @Quartz mentioned, you can do something like

    stage('Tests') {
        parallel(
            'Unit Tests': {
                container('node') {
                    sh("npm test --cat=unit")
                }
            },
            'API Tests': {
                container('node') {
                    sh("npm test --cat=acceptance")
                }
            }
        )
    }
    

提交回复
热议问题