Skip to content

Commit

Permalink
CI IT: Lock resources for hostspool
Browse files Browse the repository at this point in the history
Prevent use of GOPROXY var
  • Loading branch information
loicalbertin committed Feb 28, 2020
1 parent 7f21934 commit b092c4b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testdata/ci/runner/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pipeline {
agent none
options {
skipDefaultCheckout true
lock('yorc-ci-hostspool')
}
parameters {
choice(name: 'INFRA_FILTER', choices: ['all', 'openstack', 'gcp', 'hp'], description: 'Run on specific infrastructure (all by default)')
Expand Down Expand Up @@ -87,6 +88,8 @@ spec:
value: "/tmp/buildhome"
- name: "XDG_CACHE_HOME"
value: "/tmp/.cache"
- name: "GOPROXY"
value: ""
"""
}
}
Expand Down Expand Up @@ -151,6 +154,9 @@ spec:
command:
- cat
tty: true
env:
- name: "GOPROXY"
value: ""
"""
}
}
Expand Down Expand Up @@ -345,6 +351,7 @@ spec:
sh("""#!/usr/bin/env bash
set -x
set -eo pipefail
unset GOPROXY
mkdir -p reports
alien_url=\$(cat ./runner/bootstrap-alienurl.txt)
export ALIEN4CLOUD_URL="\${alien_url}"
Expand Down

0 comments on commit b092c4b

Please sign in to comment.