...
publishers
{
addAuthorDescActions().each { action -> action(delegate) }
...
}
public List addAuthorDescActions()
{
[
{
context -> context.with
{
groovyPostBuild
{
sandbox(true)
script(addAuthorDesc())
}
}
}
]
}
def setGit(Map args) {
args.job.with {
scm {
git {
remote {
if (args.branchName)
{
branch(args.branchName)
}
if (args.gitUrl)
{
url(args.gitUrl)
}
}
}
}
}
}
setGit(job: job, branchName: 'master')
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/119952ed-88cc-492f-8cd5-accb054e0ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
branch(getRepository().branch)scm {git {remote {url(getRepository().url)
}}}}
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAKqW32DxFyCtwrZHRjUF5Fdc8hgiLk1hxkPLK51%2BF_YeYh0A_A%40mail.gmail.com.