Add Test Logging
Some checks reported errors
andreas-personal/AndysAdguardHomeBlockList/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
andreas-personal/AndysAdguardHomeBlockList/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
7f4e0931f0
commit
0d64d09fa1
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -25,7 +25,9 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
def causes = currentBuild.getBuildCauses()
|
||||
echo "Build causes: ${causes}"
|
||||
def causedByScmEvent = causes.any { it._class == 'hudson.triggers.SCMTrigger$SCMTriggerCause' }
|
||||
echo "Caused by SCM event: ${causedByScmEvent}"
|
||||
if (!causedByScmEvent) {
|
||||
echo 'Not triggered by SCM, continuing build'
|
||||
} else if (sh(script: 'git log -1 --pretty=format:"%an"', returnStdout: true).trim() == 'Jenkins') {
|
||||
|
Reference in New Issue
Block a user