From de10678b5f2c5f4214165f99e38e5123ab4b484b Mon Sep 17 00:00:00 2001 From: Matt Bacchi Date: Wed, 4 Sep 2019 16:40:21 -0600 Subject: [PATCH] Use shorter workspace on Windows CI builds (attempt #2) Correct string concatenation Wrap agent parameters in node block --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 34e0c41fca35..b4a79c2c7f64 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -671,7 +671,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") @@ -921,6 +926,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() {