Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
48735bab
Commit
48735bab
authored
Dec 21, 2015
by
Joe Finney
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18897 from spxtr/gcloud-remove
Remove gcloud components update from e2e.sh
parents
6815cbf7
b4144a0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
39 deletions
+1
-39
e2e.sh
hack/jenkins/e2e.sh
+1
-39
No files found.
hack/jenkins/e2e.sh
View file @
48735bab
...
@@ -1147,6 +1147,7 @@ export KUBE_ADMISSION_CONTROL=${ADMISSION_CONTROL:-}
...
@@ -1147,6 +1147,7 @@ export KUBE_ADMISSION_CONTROL=${ADMISSION_CONTROL:-}
export
KUBERNETES_PROVIDER
=
${
KUBERNETES_PROVIDER
}
export
KUBERNETES_PROVIDER
=
${
KUBERNETES_PROVIDER
}
export
PATH
=
${
PATH
}
:/usr/local/go/bin
export
PATH
=
${
PATH
}
:/usr/local/go/bin
export
KUBE_SKIP_UPDATE
=
y
export
KUBE_SKIP_CONFIRMATIONS
=
y
export
KUBE_SKIP_CONFIRMATIONS
=
y
# E2E Control Variables
# E2E Control Variables
...
@@ -1185,45 +1186,6 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the
...
@@ -1185,45 +1186,6 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the
exit
1
exit
1
fi
fi
# Tell kube-up.sh to skip the update, it doesn't lock. An internal
# gcloud bug can cause racing component updates to stomp on each
# other.
export
KUBE_SKIP_UPDATE
=
y
(
# ----------- WARNING! DO NOT TOUCH THIS CODE -----------
#
# The purpose of this block is to ensure that only one job attempts to
# update gcloud at a time.
#
# PLEASE DO NOT TOUCH THIS CODE unless you are certain you understand
# implications. Please cc jlowdermilk@ or brendandburns@ on changes.
# If jenkins was recently restarted and jobs are failing with
#
# flock: 9: Permission denied
#
# ssh into the jenkins master and run
# $ sudo chown jenkins:jenkins /var/run/lock/gcloud-components.lock
#
# Note, flock -n would prevent parallel runs from having to wait
# here, but because we've set -o errexit, the err gets caught
# despite running in a subshell. If a run has to wait, the subsequent
# component update commands will be no-op, so no added delay.
flock
-x
-w
60 9
# We do NOT want to run gcloud components update under sudo, as that causes
# the gcloud files to get chown'd by root, which makes them undeletable in
# the case where we are installing gcloud under the workspace (e.g. for gke-ci
# and friends). If we can't cleanup old workspaces, jenkins runs out of disk.
#
# If the update commands are failing with permission denied, ssh into
# the jenkins master and run
#
# $ sudo chown -R jenkins:jenkins /usr/local/share/google/google-cloud-sdk
gcloud components update
-q
||
true
gcloud components update alpha
-q
||
true
gcloud components update beta
-q
||
true
)
9>/var/run/lock/gcloud-components.lock
if
[[
${
JENKINS_USE_SERVER_VERSION
:-}
=
~ ^[yY]
$
]]
;
then
if
[[
${
JENKINS_USE_SERVER_VERSION
:-}
=
~ ^[yY]
$
]]
;
then
# for GKE we can use server default version.
# for GKE we can use server default version.
bucket
=
"release"
bucket
=
"release"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment