Display cause of build trigger - as the condition for an SCM change is not working
This commit is contained in:
parent
7d21209abf
commit
8906c79103
1 changed files with 2 additions and 1 deletions
|
|
@ -46,6 +46,7 @@ def alterreleaserepo(String releaserepo, String releaserepovariantsuffix) {
|
|||
def setBuildType(meta, boolean dofullbuild = true) {
|
||||
def doquickbuild = false
|
||||
|
||||
echo "Build trigger cause: ${currentBuild.getBuildCauses()}"
|
||||
if (currentBuild.getBuildCauses('hudson.model.Cause$UserIdCause')) {
|
||||
echo "Build triggered by user"
|
||||
if (!dofullbuild) {
|
||||
|
|
@ -53,7 +54,7 @@ def setBuildType(meta, boolean dofullbuild = true) {
|
|||
doquickbuild = true
|
||||
}
|
||||
} else {
|
||||
echo "Build triggered automatically: ${currentBuild.getBuildCauses()}"
|
||||
echo "Build triggered automatically"
|
||||
if (currentBuild.getBuildCauses('jenkins.branch.BranchEventCause')) {
|
||||
echo "Marking as quick build as it was triggered by a commit"
|
||||
doquickbuild = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue