Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openxg-5gcs-release
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
openxg-5gcs-release
Commits
ba209445
Commit
ba209445
authored
Apr 03, 2022
by
Luhan Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
functional ci, still need to verify ping
parent
1d161eb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+1
-1
ci-scripts/removeVM.sh
ci-scripts/removeVM.sh
+12
-0
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
ba209445
...
...
@@ -92,7 +92,7 @@ pipeline {
always
{
script
{
// Stage destroy may not be run if error in previous stage
sh
"
rm a.out
"
sh
"
./ci-scripts/removeVM.sh
"
}
}
success
{
...
...
ci-scripts/removeVM.sh
0 → 100755
View file @
ba209445
#/bin/bash
ALL_VMS
=
$(
sudo
uvt-kvm list
)
VM_NAME
=
"vmtest"
echo
$ALL_VMS
result
=
$(
echo
$ALL_VMS
|
grep
"
${
VM_NAME
}
"
)
echo
$result
if
[
"
$result
"
!=
""
]
;
then
echo
"Found target VM"
uvt-kvm destroy
$VM_NAME
## if exist testing vm, then remove it
fi
echo
"VM removed, clean up"
\ No newline at end of file
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