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
d1dadf70
Commit
d1dadf70
authored
Apr 25, 2016
by
Zach Loafman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Jenkins: Clean up even if we can't bring cluster up
We're gathering all the cluster logs, go ahead and clean up the resources.
parent
759f11bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
e2e-runner.sh
hack/jenkins/e2e-runner.sh
+10
-0
No files found.
hack/jenkins/e2e-runner.sh
View file @
d1dadf70
...
...
@@ -139,11 +139,21 @@ function install_google_cloud_sdk_tarball() {
export
PATH
=
${
install_dir
}
/google-cloud-sdk/bin:
${
PATH
}
}
# Only call after attempting to bring the cluster up. Don't call after
# bringing the cluster down.
function
dump_cluster_logs_and_exit
()
{
local
-r
exit_status
=
$?
if
[[
-x
"cluster/log-dump.sh"
]]
;
then
./cluster/log-dump.sh
"
${
ARTIFACTS
}
"
fi
if
[[
"
${
E2E_DOWN
,,
}
"
==
"true"
]]
;
then
# If we tried to bring the cluster up, make a courtesy attempt
# to bring the cluster down so we're not leaving resources
# around. Unlike later, don't sleep beforehand, though. (We're
# just trying to tear down as many resources as we can as fast
# as possible and don't even know if we brought the master up.)
go run ./hack/e2e.go
${
E2E_OPT
:-}
-v
--down
||
true
fi
exit
${
exit_status
}
}
...
...
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