gpt4 book ai didi

Jenkins 管道 - 阶段与时间和输入

转载 作者:行者123 更新时间:2023-12-03 23:54:23 27 4
gpt4 key购买 nike

我创建了一个管道,它有一个应该只在开发分支上执行的阶段。该阶段还需要用户输入。即使我在不​​同的分支上,为什么它会卡在这些步骤的用户输入上?当我提供输入时,它们会被正确跳过。

stage('Deploy to UAT') {
when {
branch 'develop'
beforeAgent true
}
options {
timeout(time: 5, unit: 'MINUTES')
}
input {
message "Deploy to UAT?"
ok "Yes"
}

steps { echo "deploing!" }

}

BlueOceas 的 Jenkins 版本是 1.7.0 · Core 2.121.1 · d7cda7a · 2018 年 7 月 13 日下午 6:49

最佳答案

这是一个 bug在 Jenkins 管道中。 input step 在 when 之前被评估健康)状况。

关于Jenkins 管道 - 阶段与时间和输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51325154/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com