Skip to content

Commit 3ae10ab

Browse files
committed
Fixes a recent issue that has arisen with deployment in CN
1 parent 35caf24 commit 3ae10ab

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Jenkinsfile

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pipeline {
4343
currentBuild.displayName = "#" + currentBuild.number + " " + env.BRANCH
4444
currentBuild.description = "Drivers changed: " + env.CHANGED_DRIVERS
4545
}
46+
sh 'git config --global --add safe.directory "*"'
4647
sh 'git clean -xfd'
4748
sh 'apt-get update'
4849
sh 'apt-get install zip -y'

tools/deploy.py

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
print(CHANGED_DRIVERS)
1111
branch_environment = "{}_{}_".format(BRANCH, ENVIRONMENT)
1212
ENVIRONMENT_URL = os.environ.get(ENVIRONMENT+'_ENVIRONMENT_URL')
13+
if not ENVIRONMENT_URL:
14+
print("No environment url specified, aborting.")
15+
exit(0)
16+
1317
UPLOAD_URL = ENVIRONMENT_URL+"/drivers/package"
1418
CHANNEL_ID = os.environ.get(branch_environment+'CHANNEL_ID')
1519
if not CHANNEL_ID:

0 commit comments

Comments
 (0)