【发布时间】:2021-01-22 08:04:33
【问题描述】:
我正在尝试向我的 jenkins 管道添加一个输入步骤。我可以在控制台输出中看到输入步骤消息,但是当鼠标悬停在舞台视图上时没有显示为对话框。
不确定我做错了什么或遗漏了什么。我也尝试过在步骤中使用带有消息的输入,这也只在控制台输出中显示消息。我在 docker 上运行 jenkins 2.259。请问有什么建议吗?
pipeline {
agent any
stages {
stage('Hello') {
input{
message "Should we continue?"
ok "Yes, we should."
submitter "alice,bob"
parameters {
string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
}
}
steps {
echo 'Hello World'
}
}
}
}
【问题讨论】: