在 jenkins 管道期间,当存在等待用户输入的输入步骤时,无法从控制台输出推进或中止管道。但是,这些操作在蓝海 gui 中运行良好。样品管道:
pipeline {
agent none
stages {
stage('Input Stage.'){
steps{
input message: "Is?", ok: 'Continue.'
}
}
}
}
这有一个控制台输出:
[Pipeline] stage
[Pipeline] { (Input Stage.)
[Pipeline] input
Is?
Continue. or Abort
其中 continue 和 abort 都是指向以下内容的超链接:
https://jenkinsserver:33333/job/test_pipeline/77/console#
单击任一链接什么都不做,不会给出错误或更改页面。这对用户来说是不直观的,因为他们不知道是否有问题。正如我上面所说,这两个操作都可以在蓝海 UI 中正常工作。