Skip to content

Commit

Permalink
ci: add prints
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
  • Loading branch information
Vitor Bandeira committed Jul 9, 2024
1 parent b9e51bf commit 0a2ad3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jenkins/public_tests_all.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ node {
userRemoteConfigs: scm.userRemoteConfigs
]);
def description = sh(script: "git log -1 --pretty=%B", returnStdout: true).trim();
echo "Git commit description: ${description}"
if (description.contains('ci') && description.contains('skip')) {
currentBuild.result = 'SKIPPED'; // 'SUCCESS', 'SKIPPED'
echo "Stopping build."
return;
}
}
Expand Down

0 comments on commit 0a2ad3f

Please sign in to comment.