Skip to content

Commit

Permalink
Fix artifact creation for branches with / in name
Browse files Browse the repository at this point in the history
The slash in branch names such as release/.* and feature/.* is
interpreted as a directory separator. This change replaces the "/"
character with a "_".
  • Loading branch information
Jesse McFarland committed May 25, 2022
1 parent bb1ee17 commit 4bf237b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .cicd/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ pipeline {
}

environment {
BUILD_VERSION = "${env.SRW_PLATFORM}-${env.SRW_COMPILER}-${env.BRANCH_NAME}-${env.BUILD_NUMBER}"
BRANCH_NAME_ESCAPED = env.BRANCH_NAME.replace('/', '_')
BUILD_VERSION = "${env.SRW_PLATFORM}-${env.SRW_COMPILER}-${env.BRANCH_NAME_ESCAPED}-${env.BUILD_NUMBER}"
BUILD_NAME = "ufs-srweather-app_${env.BUILD_VERSION}"
}

Expand Down

0 comments on commit 4bf237b

Please sign in to comment.