I want to add a tag to push to a remote repository So I create a job like this
job('example-2') {
scm {
git('ssh://git@abc.git', 'branchName')
}
steps {
shell('sh XXXX')
}
publishers {
git {
pushOnlyIfSuccess()
tag('ssh://git@abc.git', 'v1.6') {
message('Release v1.6')
create()
update()
}
}
}
}
The function tag(?,?)'s parameter is right? It seems not work.