Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoabreu committed Sep 21, 2018
1 parent 4320d32 commit b5545b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ core_logic: {
node(NODE_LINUX_CPU) {
ws('workspace/sanity-lint') {
utils.init_git()
utils.publish_test_coverage()
utils.docker_run('ubuntu_cpu', 'sanity_check', false)
}
}
Expand Down
3 changes: 3 additions & 0 deletions ci/Jenkinsfile_utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ echo ${libs} | sed -e 's/,/ /g' | xargs md5sum
def publish_test_coverage() {
// CodeCovs auto detection has trouble with our CIs PR validation due the merging strategy
lastCommitMessage = sh (script: "git log -1 --pretty=%B", returnStdout: true)
echo lastCommitMessage
echo lastCommitMessage.startsWith("Merge commit '").toString()
echo lastCommitMessage.endsWith("' into HEAD").toString()
if (lastCommitMessage.startsWith("Merge commit '") && lastCommitMessage.endsWith("' into HEAD")) {
// Merge commit applied by Jenkins, skip that commit
GIT_COMMIT_HASH = sh (script: "git rev-parse @~", returnStdout: true)
Expand Down

0 comments on commit b5545b1

Please sign in to comment.