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
Operations
Operations
Metrics
Environments
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
ZhaoJingguo
openxg-5gcs-release
Commits
c469b28a
Commit
c469b28a
authored
Apr 03, 2022
by
Luhan Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
a0ea9d8b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+5
-8
ci-scripts/createVM.sh
ci-scripts/createVM.sh
+2
-2
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
c469b28a
...
...
@@ -63,21 +63,18 @@ pipeline {
}
}
}
stage
(
"
Verify output Stage
"
)
{
stage
(
"
Prepare environment
"
)
{
steps
{
script
{
echo
"Hello World, Run a.out"
sh
'./a.out'
result
=
sh
(
script:
"./a.out"
,
returnStdout:
true
)
echo
result
.
trim
()
echo
"aaaaaaaaaaa"
echo
"Prepare environment in VM"
sh
'./ci-scripts/prepareEnv.sh'
/*
if (true){
echo "in if yuju"
currentBuild.result = 'FAILED'
error('Aborting the build.')
return
}
}
*/
}
}
}
...
...
ci-scripts/createVM.sh
View file @
c469b28a
...
...
@@ -9,6 +9,6 @@ if [ "$result" != "" ];then
uvt-kvm destroy
$VM_NAME
## if exist testing vm, then remove it
fi
##创建一个虚拟机用于承载测试;
#
uvt-kvm create vmtest release=bionic --memory 8192 --disk 80 --cpu 4 --ssh-public-key-file ~/.ssh/id_rsa.pub
#
uvt-kvm wait $VM_NAME
uvt-kvm create vmtest
release
=
bionic
--memory
8192
--disk
80
--cpu
4
--ssh-public-key-file
~/.ssh/id_rsa.pub
uvt-kvm
wait
$VM_NAME
echo
"successfully created VM, name is vmtest"
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