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
561ec056
Unverified
Commit
561ec056
authored
Mar 17, 2023
by
Derek Nola
Committed by
GitHub
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drone: Cleanup E2E VMs on test panic (#7104)
* Cleanup leftover VMs in E2E pipeline Signed-off-by:
Derek Nola
<
derek.nola@suse.com
>
parent
99805041
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
.drone.yml
.drone.yml
+26
-1
No files found.
.drone.yml
View file @
561ec056
...
...
@@ -665,6 +665,22 @@ platform:
arch
:
amd64
steps
:
-
name
:
skipfiles
image
:
plugins/git
commands
:
-
export NAME=$(test $DRONE_BUILD_EVENT = pull_request && echo remotes/origin/${DRONE_COMMIT_BRANCH:-master} || echo ${DRONE_COMMIT_SHA}~)
-
export DIFF=$(git --no-pager diff --name-only $NAME | grep -v -f .droneignore);
-
if [ -z "$DIFF" ]; then
echo "All files in PR are on ignore list";
exit 78;
else
echo "Some files in PR are not ignored, $DIFF";
fi;
when
:
event
:
-
push
-
pull_request
-
name
:
build-e2e-image
image
:
rancher/dapper:v0.5.0
commands
:
...
...
@@ -692,13 +708,22 @@ steps:
-
docker run -d -p 5000:5000 -e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io --name registry registry:2
-
cd tests/e2e/validatecluster
-
vagrant destroy -f
-
go test -v -timeout=
30
m ./validatecluster_test.go -ci -local
-
go test -v -timeout=
45
m ./validatecluster_test.go -ci -local
-
cd ../secretsencryption
-
vagrant destroy -f
-
go test -v -timeout=30m ./secretsencryption_test.go -ci -local
-
cd ../upgradecluster
-
E2E_RELEASE_CHANNEL="latest" go test -v -timeout=45m ./upgradecluster_test.go -ci -local
-
docker stop registry && docker rm registry
# Cleanup any VMs still running, happens if a test panics
-
VMS=$(virsh list --name | grep '_server-\|_agent-' ||
true
)
-
|
for vm in $VMS
do
virsh destroy $vm
virsh undefine $vm --remove-all-storage
done
volumes
:
-
name
:
libvirt
path
:
/var/run/libvirt/
...
...
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