Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
常顺宇
OpenXG-RAN
Commits
0d67d44e
Commit
0d67d44e
authored
Sep 03, 2018
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: running TDD test even if FDD failed
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
afa64a0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
62 deletions
+48
-62
ci-scripts/Jenkinsfile-gitlab
ci-scripts/Jenkinsfile-gitlab
+44
-58
ci-scripts/runTestOnVM.sh
ci-scripts/runTestOnVM.sh
+4
-4
No files found.
ci-scripts/Jenkinsfile-gitlab
View file @
0d67d44e
...
...
@@ -269,6 +269,7 @@ pipeline {
steps
{
gitlabCommitStatus
(
name:
"Test-FDD-Band7"
)
{
script
{
try
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
FDD_Band7_B210_Status
=
build
job:
'eNB-CI-FDD-Band7-B210'
,
parameters:
[
...
...
@@ -286,25 +287,17 @@ pipeline {
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
]
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
post
{
// In case of success we really pick the report from the exact slave build number
success
{
script
{
copyArtifacts
(
projectName:
'eNB-CI-FDD-Band7-B210'
,
filter:
'test_results*.html'
,
selector:
specific
(
"${FDD_Band7_B210_Status.number}"
))
if
(
fileExists
(
'test_results-eNB-CI-FDD-Band7-B210.html'
))
{
archiveArtifacts
artifacts:
'test_results-eNB-CI-FDD-Band7-B210.html'
}
}
}
post
{
// In case of any non-success, we are retrieving the HTML report of the last completed
// slave job.
Note that we could use that syntax also in case of success.
// slave job.
// The only drop-back is that we may retrieve the HTML report of a previous build
cleanup
{
always
{
script
{
if
(!
fileExists
(
'test_results-eNB-CI-FDD-Band7-B210.html'
))
{
copyArtifacts
(
projectName:
'eNB-CI-FDD-Band7-B210'
,
...
...
@@ -322,6 +315,7 @@ pipeline {
steps
{
gitlabCommitStatus
(
name:
"Test-TDD-Band40"
)
{
script
{
try
{
if
(
"MERGE"
.
equals
(
env
.
gitlabActionType
))
{
TDD_Band40_B210_Status
=
build
job:
'eNB-CI-TDD-Band40-B210'
,
parameters:
[
...
...
@@ -339,25 +333,17 @@ pipeline {
booleanParam
(
name:
'eNB_mergeRequest'
,
value:
false
)
]
}
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
}
}
}
post
{
// In case of success we really pick the report from the exact slave build number
success
{
script
{
copyArtifacts
(
projectName:
'eNB-CI-TDD-Band40-B210'
,
filter:
'test_results*.html'
,
selector:
specific
(
"${TDD_Band40_B210_Status.number}"
))
if
(
fileExists
(
'test_results-eNB-CI-TDD-Band40-B210.html'
))
{
archiveArtifacts
artifacts:
'test_results-eNB-CI-TDD-Band40-B210.html'
}
}
}
post
{
// In case of any non-success, we are retrieving the HTML report of the last completed
// slave job.
Note that we could use that syntax also in case of success.
// slave job.
// The only drop-back is that we may retrieve the HTML report of a previous build
cleanup
{
always
{
script
{
if
(!
fileExists
(
'test_results-eNB-CI-TDD-Band40-B210.html'
))
{
copyArtifacts
(
projectName:
'eNB-CI-TDD-Band40-B210'
,
...
...
ci-scripts/runTestOnVM.sh
View file @
0d67d44e
...
...
@@ -593,9 +593,9 @@ then
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
<
$EPC_VM_CMDS
rm
$EPC_VM_CMDS
echo
"echo
\"
iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
4
M -i 1
\"
"
>
$VM_CMDS
echo
"echo
\"
COMMAND IS: iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
4
M -i 1
\"
> /home/ubuntu/tmp/cmake_targets/log/iperf_ul_client.txt"
>
$VM_CMDS
echo
"iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
4
M -i 1 | tee -a /home/ubuntu/tmp/cmake_targets/log/iperf_ul_client.txt"
>>
$VM_CMDS
echo
"echo
\"
iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
2
M -i 1
\"
"
>
$VM_CMDS
echo
"echo
\"
COMMAND IS: iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
2
M -i 1
\"
> /home/ubuntu/tmp/cmake_targets/log/iperf_ul_client.txt"
>
$VM_CMDS
echo
"iperf -c
$REAL_EPC_IP_ADDR
-u -t 30 -b
2
M -i 1 | tee -a /home/ubuntu/tmp/cmake_targets/log/iperf_ul_client.txt"
>>
$VM_CMDS
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
<
$VM_CMDS
rm
-f
$VM_CMDS
...
...
@@ -674,7 +674,7 @@ then
STATUS
=
-1
else
EFFECTIVE_BANDWIDTH
=
`
tail
-n3
$ARCHIVES_LOC
/iperf_ul_client.txt | egrep
"Mbits/sec"
|
sed
-e
"s#^.*MBytes *##"
-e
"s#sec.*#sec#"
`
if
[[
$EFFECTIVE_BANDWIDTH
=
~ .
*
4.
*
Mbits.
*
]]
||
[[
$EFFECTIVE_BANDWIDTH
=
~ .
*
3
.
*
Mbits.
*
]]
if
[[
$EFFECTIVE_BANDWIDTH
=
~ .
*
2.
*
Mbits.
*
]]
||
[[
$EFFECTIVE_BANDWIDTH
=
~ .
*
1
.
*
Mbits.
*
]]
then
echo
"got requested UL bandwidth:
$EFFECTIVE_BANDWIDTH
"
else
...
...
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