jenkinsci/pipeline-as-yaml-plugin

scenarioInput stage missing close brace

Closed this issue · 3 comments

Describe the bug
scenarioInput stage missing close brace

Additional context
pipeline {
agent none
stages {
stage('Stage1') {
input {
message "message"
id "id"
ok "ok"
submitter "submitter"
submitterParameter "submitterParameter"
parameters {
string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')
}
steps {
echo "1"
}
}
}
}

Hi @keqingyuan

Could you please write the yaml format of this output ?

Thanks

below

pipeline:
stages:
- stage: "Stage1"
input:
message: "message"
id: "id"
ok: "ok"
submitter: "submitter"
submitterParameter: "submitterParameter"
parameters:
- "string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?')"
steps:
- echo "1"

Hi @keqingyuan
Thank you for pointing out this bug. Made the changes, will be fixed with the new release.