Skip to content

Commit

Permalink
Merge pull request #5446 from brave/mplesa/ci-pipeline-slash-fix
Browse files Browse the repository at this point in the history
fixed slash escaping in branch name
  • Loading branch information
mihaiplesa committed May 2, 2020
2 parents 4f6c378 + 882ec1f commit e82feb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ def checkAndAbortBuild() {
}

def startBraveBrowserBuild() {
PIPELINE_NAME = "pr-brave-browser-" + BRAVE_CORE_BRANCH.replace('/', '-')
jobDsl(scriptText: """
pipelineJob("pr-brave-browser-${BRAVE_CORE_BRANCH}") {
pipelineJob("${PIPELINE_NAME}") {
// this list has to match the parameters in the Jenkinsfile from devops repo
parameters {
choiceParam("CHANNEL", ["nightly", "dev", "beta", "release", "development"])
Expand Down Expand Up @@ -197,5 +198,5 @@ def startBraveBrowserBuild() {
string(name: "BRANCH_PRODUCTIVITY_DESCRIPTION", value: BRANCH_PRODUCTIVITY_DESCRIPTION),
string(name: "BRANCH_PRODUCTIVITY_USER", value: BRANCH_PRODUCTIVITY_USER)
]
currentBuild.result = build(job: "pr-brave-browser-${BRAVE_CORE_BRANCH}", parameters: params, propagate: false).result
currentBuild.result = build(job: PIPELINE_NAME, parameters: params, propagate: false).result
}

0 comments on commit e82feb6

Please sign in to comment.