So I'd really like to get some feedback on two possible syntax approaches - I'm fine with either one, so I need input. =)
First, which is what's currently in the PR:
agent {
label "foo"
}
agent {
docker "httpd:2.4.12"
dockerArgs "-v /tmp:/tmp -p 80:80"
label "foo"
someComplicatedOption {
optA "banana"
optB "monkey"
}
}
agent {
dockerfile "true"
dockerArgs "-v /tmp:/tmp -p 80:80"
label "foo"
}
Second:
agent {
label "foo"
}
agent {
docker {
image "httpd:2.4.12"
args "-v /tmp:/tmp -p 80:80"
label "foo"
someComplicatedOption {
optA "banana"
optB "monkey"
}
}
agent {
dockerfile {
args "-v /tmp:/tmp -p 80:80"
label "foo"
}
}
And of course, agent any and agent none will still be working.
Thoughts, hrmpw, michaelneale, jamesdumay, rsandell, herau, imod, lsglick, pleibiger?
PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/73