Is it possible to find out who or what triggered the build from a Groovy
script? Either an SCM change, another project or user. I have just begun
reading a little about Groovy and the Jenkins API.
I want to check for the following conditions and build accordingly.
if (trigger == scm) {
build_with_automake
new_version = git tag exist for version
if (new_version) {
tag new release candidate in Git
publish rc
}
}
else if (trigger == "Build other projects") {
build_with_automake
}
The project should build on every SCM change, but only tag and publish if
version has been increased. It should also build when a build has been
triggered by another project.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/a4a10f09-9846-4c6e-b572-ed5123f0977d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.