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
405656ef
Commit
405656ef
authored
Apr 12, 2016
by
Abhi Shah
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #24149 from ihmccreery/upgrade-clean
e2e-runner: don't clean old binaries before upgrade
parents
0fb74788
7fb421bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
e2e-runner.sh
hack/jenkins/e2e-runner.sh
+3
-3
No files found.
hack/jenkins/e2e-runner.sh
View file @
405656ef
...
@@ -26,14 +26,12 @@ function running_in_docker() {
...
@@ -26,14 +26,12 @@ function running_in_docker() {
}
}
function
fetch_output_tars
()
{
function
fetch_output_tars
()
{
clean_binaries
echo
"Using binaries from _output."
echo
"Using binaries from _output."
cp
_output/release-tars/kubernetes
*
.tar.gz
.
cp
_output/release-tars/kubernetes
*
.tar.gz
.
unpack_binaries
unpack_binaries
}
}
function
fetch_server_version_tars
()
{
function
fetch_server_version_tars
()
{
clean_binaries
local
-r
msg
=
$(
gcloud
${
CMD_GROUP
:-}
container get-server-config
--project
=
${
PROJECT
}
--zone
=
${
ZONE
}
|
grep
defaultClusterVersion
)
local
-r
msg
=
$(
gcloud
${
CMD_GROUP
:-}
container get-server-config
--project
=
${
PROJECT
}
--zone
=
${
ZONE
}
|
grep
defaultClusterVersion
)
# msg will look like "defaultClusterVersion: 1.0.1". Strip
# msg will look like "defaultClusterVersion: 1.0.1". Strip
# everything up to, including ": "
# everything up to, including ": "
...
@@ -45,7 +43,6 @@ function fetch_server_version_tars() {
...
@@ -45,7 +43,6 @@ function fetch_server_version_tars() {
# Use a published version like "ci/latest" (default), "release/latest",
# Use a published version like "ci/latest" (default), "release/latest",
# "release/latest-1", or "release/stable"
# "release/latest-1", or "release/stable"
function
fetch_published_version_tars
()
{
function
fetch_published_version_tars
()
{
clean_binaries
local
-r
published_version
=
"
${
1
}
"
local
-r
published_version
=
"
${
1
}
"
IFS
=
'/'
read
-a
varr
<<<
"
${
published_version
}
"
IFS
=
'/'
read
-a
varr
<<<
"
${
published_version
}
"
bucket
=
"
${
varr
[0]
}
"
bucket
=
"
${
varr
[0]
}
"
...
@@ -203,14 +200,17 @@ elif [[ "${KUBE_RUN_FROM_OUTPUT:-}" =~ ^[yY]$ ]]; then
...
@@ -203,14 +200,17 @@ elif [[ "${KUBE_RUN_FROM_OUTPUT:-}" =~ ^[yY]$ ]]; then
# TODO(spxtr) This should probably be JENKINS_USE_BINARIES_FROM_OUTPUT or
# TODO(spxtr) This should probably be JENKINS_USE_BINARIES_FROM_OUTPUT or
# something, rather than being prepended with KUBE, since it's sort of a
# something, rather than being prepended with KUBE, since it's sort of a
# meta-thing.
# meta-thing.
clean_binaries
fetch_output_tars
fetch_output_tars
elif
[[
"
${
JENKINS_USE_SERVER_VERSION
:-}
"
=
~ ^[yY]
$
]]
;
then
elif
[[
"
${
JENKINS_USE_SERVER_VERSION
:-}
"
=
~ ^[yY]
$
]]
;
then
# This is for test, staging, and prod jobs on GKE, where we want to
# This is for test, staging, and prod jobs on GKE, where we want to
# test what's running in GKE by default rather than some CI build.
# test what's running in GKE by default rather than some CI build.
clean_binaries
fetch_server_version_tars
fetch_server_version_tars
else
else
# use JENKINS_PUBLISHED_VERSION, default to 'ci/latest', since that's
# use JENKINS_PUBLISHED_VERSION, default to 'ci/latest', since that's
# usually what we're testing.
# usually what we're testing.
clean_binaries
fetch_published_version_tars
"
${
JENKINS_PUBLISHED_VERSION
:-
ci
/latest
}
"
fetch_published_version_tars
"
${
JENKINS_PUBLISHED_VERSION
:-
ci
/latest
}
"
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