Using Job DSL I can create a very basic Jenkins job that pulls my code out of my Github Enterprise repo, but the Job DSL ‘perBuildTag()’ method defaults to true so that the Jenkins job always attempts to write a tag to the GHE repo every time the newly built Jenkins job runs (Additional Behaviors: Create a tag for every build). I don’t want to write a tag to the repo on every build. Any ideas how to turn this perBuildTag() off in code? I've tried using 'createTag(false) like I saw in another similar post thread, but this doesn't seem to do anything, either.
Thanks.
job('yyyyy') { ... scm { git { remote { name('remote') url ('xxx') } branch('master') createTag false } }
...
}
job (projectName) {
scm {
git {
remote {
name('remote');
url("url");
}
branch(branchName);
extensions {
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/648be55d-23c7-4b55-86e6-3d0732c6898e%40googlegroups.com.
Which version of Job DSL are you using? In recent versions an empty extensions block makes no difference to the generated config XML. You can test that with the playground: http://job-dsl.herokuapp.com/Daniel
On Mon, Oct 10, 2016 at 6:53 PM, Jeff Winnett <winne...@gmail.com> wrote:
I finally got it working. Here’s what I finally ended up having to do to prevent the generated job from specifying that a tag be created in the GHE repo every build. The key seems to be the empty ‘extensions’ block.
job (projectName) {
scm {
git {
remote {
name('remote');
url("url");
}
branch(branchName);
extensions {
}
}
}
}
On Friday, October 7, 2016 at 8:50:42 AM UTC-7, Jeff Winnett wrote:Using Job DSL I can create a very basic Jenkins job that pulls my code out of my Github Enterprise repo, but the Job DSL ‘perBuildTag()’ method defaults to true so that the Jenkins job always attempts to write a tag to the GHE repo every time the newly built Jenkins job runs (Additional Behaviors: Create a tag for every build). I don’t want to write a tag to the repo on every build. Any ideas how to turn this perBuildTag() off in code? I've tried using 'createTag(false) like I saw in another similar post thread, but this doesn't seem to do anything, either.
Thanks.
--
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-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.