【发布时间】:2019-04-19 07:04:07
【问题描述】:
我有一些并行测试的 groovy 脚本,但我无法从 jenkins UI 手动重新启动阶段 Installation1/Installation2。有没有其他方法可以让我重新启动特定阶段?
pipeline {
agent {label ''}
stages {
stage('Check workspace') {
steps {
}
}
stage('Installation') {
parallel{
stage('Installation 1')
{
agent {label ''}
steps {
}
}
}
stage('Installation 2')
{
agent {label ''}
steps {
}
}
}
}
}
stage('Test') {
parallel{
stage(' Tests 1'){
agent {label ''}
steps {
}
}
stage(' Tests 2'){
agent {label ''}
steps {
}
}
}
}
stage('Report') {
steps {
}
}
}
}
【问题讨论】:
-
考虑在阶段使用“参数”与条件(“何时”)混合
标签: jenkins jenkins-pipeline jenkins-groovy