我有一份工作,我可以传递命令行参数,如
gradle -Pconf = prod build
如何在作业dsl中传递参数?
我尝试了以下但不起作用
job("doSomething"){
steps {
gradle('-Pconf=prod build')
}
}
job("doSomething"){
steps {
gradle('build', '-Pconf=prod')
}
}
job("doSomething"){
steps {
gradle{
tasks('build')
tasks('-Pconf=prod')
}
}
}
job("doSomething"){
steps {
gradle{
tasks('build')
switches('-Pconf=prod')
}
}
}
job dsl plugin version 1.48