Skip to content

Commit

Permalink
Temporarily disable git cache for all platforms (for PR builder)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsclifton committed Apr 23, 2020
1 parent 24d97dd commit b75a98d
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pipeline {
}
agent { label "android-ci" }
environment {
GIT_CACHE_PATH = "${HOME}/cache"
// GIT_CACHE_PATH = "${HOME}/cache"
QA_CODE = credentials("android-browser-qa-code")
KEYSTORE_NAME = "linkbubble"
KEYSTORE_PATH = credentials("android-browser-sign-key-store")
Expand Down Expand Up @@ -161,9 +161,9 @@ pipeline {
expression { !SKIP_IOS }
}
agent { label "mac-ci" }
environment {
GIT_CACHE_PATH = "${HOME}/cache"
}
// environment {
// GIT_CACHE_PATH = "${HOME}/cache"
// }
stages {
stage("checkout") {
steps {
Expand Down Expand Up @@ -256,9 +256,9 @@ pipeline {
expression { !SKIP_LINUX }
}
agent { label "linux-ci" }
environment {
GIT_CACHE_PATH = "${HOME}/cache"
}
// environment {
// GIT_CACHE_PATH = "${HOME}/cache"
// }
stages {
stage("checkout") {
steps {
Expand Down Expand Up @@ -385,7 +385,7 @@ pipeline {
}
agent { label "mac-ci" }
environment {
GIT_CACHE_PATH = "${HOME}/cache"
// GIT_CACHE_PATH = "${HOME}/cache"
KEYCHAIN = "signing-ci"
KEYCHAIN_PATH = "/Users/jenkins/Library/Keychains/${KEYCHAIN}.keychain-db"
KEYCHAIN_PASS = credentials("mac-ci-signing-keychain-password")
Expand Down Expand Up @@ -551,7 +551,7 @@ pipeline {
}
}
environment {
GIT_CACHE_PATH = "C:\\Users\\Administrator\\cache"
// GIT_CACHE_PATH = "C:\\Users\\Administrator\\cache"
PATH = "C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.18362.0\\x64\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\IDE\\Remote Debugger\\x64;${PATH}"
SIGNTOOL_ARGS = "sign /t http://timestamp.digicert.com /fd sha256 /sm"
CERT = "Brave"
Expand Down Expand Up @@ -913,8 +913,9 @@ def pinWindows() {
}

def install() {
// TODO(bsclifton): re-add below line to `sh` when git cache is sorted out
// rm -rf ${GIT_CACHE_PATH}/*.lock
sh """
rm -rf ${GIT_CACHE_PATH}/*.lock
npm install --no-optional
"""
}
Expand Down Expand Up @@ -977,8 +978,9 @@ def configWindows() {
}

def installWindows() {
// TODO(bsclifton): re-add below line to `powershell` when git cache is sorted out
// Remove-Item -Recurse -Force ${GIT_CACHE_PATH}/*.lock
powershell """
Remove-Item -Recurse -Force ${GIT_CACHE_PATH}/*.lock
Get-ChildItem "Cert:\\LocalMachine\\My" | Remove-Item
\$ErrorActionPreference = "Stop"
npm install --no-optional
Expand Down

0 comments on commit b75a98d

Please sign in to comment.