Following my title.
I use the groovy to do that.
But it doesn't work. who can ask me how do it?
the following is my source:
job("AAA") {
parameters {
stringParam('branch_name', 'master', 'input branch name')
stringParam('commit_id', '123456', 'input commit id')
}
gitSCM {
userRemoteConfigs {
userRemoteConfig {
url("ssh://git@abc/abc.git")
name("${branch_name}")
}
}
branches {
branchSpec {
name("${commit_id}")
}
}}
Thanks.