mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Merge pull request #14824 from gmarek/fix-jenkins
Fix 'flock' command in hack/jenkins/e2e.sh
This commit is contained in:
commit
28d71418ca
@ -613,13 +613,13 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the
|
|||||||
# gcloud bug can cause racing component updates to stomp on each
|
# gcloud bug can cause racing component updates to stomp on each
|
||||||
# other.
|
# other.
|
||||||
export KUBE_SKIP_UPDATE=y
|
export KUBE_SKIP_UPDATE=y
|
||||||
{
|
(
|
||||||
sudo flock -x -n 9
|
flock -x -n 9
|
||||||
gcloud components update -q || true
|
sudo gcloud components update -q || true
|
||||||
gcloud components update preview -q || true
|
sudo gcloud components update preview -q || true
|
||||||
gcloud components update alpha -q || true
|
sudo gcloud components update alpha -q || true
|
||||||
gcloud components update beta -q || true
|
sudo gcloud components update beta -q || true
|
||||||
} 9>/var/run/lock/gcloud-components.lock
|
) 9>/var/run/lock/gcloud-components.lock
|
||||||
|
|
||||||
if [[ ! -z ${JENKINS_EXPLICIT_VERSION:-} ]]; then
|
if [[ ! -z ${JENKINS_EXPLICIT_VERSION:-} ]]; then
|
||||||
# Use an explicit pinned version like "ci/v0.10.0-101-g6c814c4" or
|
# Use an explicit pinned version like "ci/v0.10.0-101-g6c814c4" or
|
||||||
|
Loading…
Reference in New Issue
Block a user