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
cf255212
Commit
cf255212
authored
Apr 21, 2015
by
Zach Loafman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7143 from mbforbes/jenkinsTest
Jenkins: support released/ci and latest/stable tars and versions.
parents
d84393cb
58801668
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
e2e.sh
hack/jenkins/e2e.sh
+18
-5
No files found.
hack/jenkins/e2e.sh
View file @
cf255212
...
@@ -104,8 +104,21 @@ else
...
@@ -104,8 +104,21 @@ else
sudo
flock
-x
-n
/var/run/lock/gcloud-components.lock
-c
"gcloud components update -q"
||
true
sudo
flock
-x
-n
/var/run/lock/gcloud-components.lock
-c
"gcloud components update -q"
||
true
GITHASH
=
$(
gsutil
cat
gs://kubernetes-release/ci/latest.txt
)
# The "ci" bucket is for builds like "v0.15.0-468-gfa648c1"
gsutil
-m
cp
gs://kubernetes-release/ci/
${
GITHASH
}
/kubernetes.tar.gz gs://kubernetes-release/ci/
${
GITHASH
}
/kubernetes-test.tar.gz
.
bucket
=
"ci"
# The "latest" version picks the most recent "ci" or "release" build.
version_file
=
"latest"
if
[[
${
JENKINS_USE_RELEASE_TARS
:-}
=
~ ^[yY]
$
]]
;
then
# The "release" bucket is for builds like "v0.15.0"
bucket
=
"release"
if
[[
${
JENKINS_USE_STABLE
:-}
=
~ ^[yY]
$
]]
;
then
# The "stable" version picks the most recent "release" build.
version_file
=
"stable"
fi
fi
githash
=
$(
gsutil
cat
gs://kubernetes-release/
${
bucket
}
/
${
version_file
}
.txt
)
gsutil
-m
cp
gs://kubernetes-release/
${
bucket
}
/
${
githash
}
/kubernetes.tar.gz gs://kubernetes-release/
${
bucket
}
/
${
githash
}
/kubernetes-test.tar.gz
.
fi
fi
md5sum
kubernetes
*
.tar.gz
md5sum
kubernetes
*
.tar.gz
...
@@ -115,9 +128,9 @@ cd kubernetes
...
@@ -115,9 +128,9 @@ cd kubernetes
# Set by GKE-CI to change the CLUSTER_API_VERSION to the git version
# Set by GKE-CI to change the CLUSTER_API_VERSION to the git version
if
[[
!
-z
${
E2E_SET_CLUSTER_API_VERSION
:-}
]]
;
then
if
[[
!
-z
${
E2E_SET_CLUSTER_API_VERSION
:-}
]]
;
then
export
CLUSTER_API_VERSION
=
$(
echo
${
GITHASH
}
|
cut
-c
2-
)
export
CLUSTER_API_VERSION
=
$(
echo
${
githash
}
|
cut
-c
2-
)
elif
[[
!
-z
${
E2E_USE_LATEST_RELEASE_VERSION
:-}
]]
;
then
elif
[[
${
JENKINS_USE_RELEASE_TARS
:-}
=
~ ^[yY]
$
]]
;
then
release
=
$(
gsutil
cat
gs://kubernetes-release/release/
latest
.txt |
cut
-c
2-
)
release
=
$(
gsutil
cat
gs://kubernetes-release/release/
${
version_file
}
.txt |
cut
-c
2-
)
export
CLUSTER_API_VERSION
=
${
release
}
export
CLUSTER_API_VERSION
=
${
release
}
fi
fi
...
...
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