build: Adjust for move to multibranch
@@ -511,13 +511,7 @@ def cmake(String directory, Map args_map) {
def publishCoverage() {
echo "Start publication of coverage data"
def uniquePrefix = 'publishCoverage'
- def branchDir = 'unknownBranch'
- if(isMaster()) {
- branchDir = 'master'
- } else {
- branchDir = "PR_${env.ghprbPullId}"
- }
- def uploadDir = "${uniquePrefix}/${branchDir}/${env.STAGE_NAME}"
+ def uploadDir = "${uniquePrefix}/${env.BRANCH_NAME}/${env.STAGE_NAME}"
sh "mkdir -p ${uploadDir}"
sh "mv build/coverage ${uploadDir}"
