Skip to content

Commit

Permalink
Use shorter workspace on Windows CI builds (attempt #2)
Browse files Browse the repository at this point in the history
Correct string concatenation

Wrap agent parameters in node block
  • Loading branch information
mbacchi authored and mkarolin committed Sep 14, 2019
1 parent 1f45bb2 commit 0ded624
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,12 @@ pipeline {
beforeAgent true
expression { !SKIP_WINDOWS }
}
agent { label "windows-ci" }
agent {
node {
label "windows-ci"
customWorkspace "${WINDOWS_CUSTOM_WORKSPACE}"
}
}
environment {
GIT_CACHE_PATH = "${USERPROFILE}\\cache"
SCCACHE_BUCKET = credentials("brave-browser-sccache-win-s3-bucket")
Expand Down Expand Up @@ -837,6 +842,7 @@ def setEnv() {
if (env.SLACK_USERNAME) {
slackSend(color: null, channel: env.SLACK_USERNAME, message: "[${BUILD_TAG_SLASHED} `${BRANCH}`] STARTED (<${BUILD_URL}/flowGraphTable/?auto_refresh=true|Open>)")
}
WINDOWS_CUSTOM_WORKSPACE = "C:\\temp\\" + "PR-" + env.BC_PR_NUMBER + "-BLD-" + env.BUILD_NUMBER
}

def checkAndAbortBuild() {
Expand Down

0 comments on commit 0ded624

Please sign in to comment.