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

Commit

Permalink
Always use latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoabreu committed Sep 20, 2018
1 parent 2c8956a commit d724c8c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ci/Jenkinsfile_utils.groovy
Expand Up @@ -78,16 +78,14 @@ 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
def codecovArgs = ""
GIT_COMMIT_HASH = sh (script: "git rev-parse @", returnStdout: true)
if (env.CHANGE_ID) {
// PR execution
// Take the previous commit because of our PR merge strategy that adds a temporary commit for CI
GIT_COMMIT_HASH = sh (script: "git rev-parse @~", returnStdout: true)
codecovArgs += "-B ${env.CHANGE_TARGET} " +
"-C ${GIT_COMMIT_HASH} " +
"-P ${env.CHANGE_ID} "
} else {
// Branch execution
GIT_COMMIT_HASH = sh (script: "git rev-parse @", returnStdout: true)
codecovArgs += "-B ${env.BRANCH_NAME} " +
"-C ${GIT_COMMIT_HASH} "
}
Expand Down

0 comments on commit d724c8c

Please sign in to comment.