我有一个 Jenkinsfile 实例,使用 ansible-playbook 来部署 webmachine。
我需要一次指定多个 ansible-playbook 参数。
我有
WorkflowScript:25:多次出现参数部分
我的 jenkinsfile 像这样,
pipeline {
agent none
stages {
stage('docker-compose up') {
input {
message "Should we continue?"
ok "Yes, do it!"
parameters {
string(name: 'KIBANA_TAG', defaultValue: '', description: 'input tag for ansible command.')
}
parameters {
string(name: 'FLUENT_TAG', defaultValue: '', description: 'input tag for ansible command.')
}
parameters {
string(name: 'ES_TAG', defaultValue: '', description: 'input tag for ansible command.')
}
parameters {
string(name: 'HOST', defaultValue: '', description: 'input …Run Code Online (Sandbox Code Playgroud)