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
4eaadf8d
Commit
4eaadf8d
authored
Jan 26, 2020
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: fixing slave pipelines
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
893e19fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
ci-scripts/Jenkinsfile-tmp-full-ran
ci-scripts/Jenkinsfile-tmp-full-ran
+4
-4
ci-scripts/Jenkinsfile-tmp-multi-enb
ci-scripts/Jenkinsfile-tmp-multi-enb
+6
-6
ci-scripts/Jenkinsfile-tmp-ran
ci-scripts/Jenkinsfile-tmp-ran
+4
-4
ci-scripts/Jenkinsfile-tmp-ue
ci-scripts/Jenkinsfile-tmp-ue
+4
-4
No files found.
ci-scripts/Jenkinsfile-tmp-full-ran
View file @
4eaadf8d
...
...
@@ -51,7 +51,7 @@ termStatusArray[termOAIUE] = false
def
eNB_Repository
def
eNB_Branch
def
eNB_CommitID
def
ran
AllowMergeRequestProcess
=
false
def
eNB_
AllowMergeRequestProcess
=
false
def
eNB_TargetBranch
def
doEpcLogCollection
=
true
...
...
@@ -130,8 +130,8 @@ pipeline {
}
echo
"eNB_CommitID : ${eNB_CommitID}"
if
(
params
.
eNB_mergeRequest
!=
null
)
{
ran
AllowMergeRequestProcess
=
params
.
eNB_mergeRequest
if
(
ran
AllowMergeRequestProcess
)
{
eNB_
AllowMergeRequestProcess
=
params
.
eNB_mergeRequest
if
(
eNB_
AllowMergeRequestProcess
)
{
if
(
params
.
eNB_TargetBranch
!=
null
)
{
eNB_TargetBranch
=
params
.
eNB_TargetBranch
}
else
{
...
...
@@ -168,7 +168,7 @@ pipeline {
if
(
allParametersPresent
)
{
echo
"All parameters are present"
if
(
ran
AllowMergeRequestProcess
)
{
if
(
eNB_
AllowMergeRequestProcess
)
{
sh
"git fetch"
sh
"./ci-scripts/doGitLabMerge.sh --src-branch ${eNB_Branch} --src-commit ${eNB_CommitID} --target-branch ${eNB_TargetBranch} --target-commit latest"
}
else
{
...
...
ci-scripts/Jenkinsfile-tmp-multi-enb
View file @
4eaadf8d
...
...
@@ -41,7 +41,7 @@ def ciSmartPhoneResource = params.smartphonesResource
def
eNB_Repository
def
eNB_Branch
def
eNB_CommitID
def
ran
AllowMergeRequestProcess
=
false
def
eNB_
AllowMergeRequestProcess
=
false
def
eNB_TargetBranch
pipeline
{
...
...
@@ -124,8 +124,8 @@ pipeline {
}
echo
"eNB_CommitID : ${eNB_CommitID}"
if
(
params
.
eNB_mergeRequest
!=
null
)
{
ran
AllowMergeRequestProcess
=
params
.
eNB_mergeRequest
if
(
ran
AllowMergeRequestProcess
)
{
eNB_
AllowMergeRequestProcess
=
params
.
eNB_mergeRequest
if
(
eNB_
AllowMergeRequestProcess
)
{
if
(
params
.
eNB_TargetBranch
!=
null
)
{
eNB_TargetBranch
=
params
.
eNB_TargetBranch
}
else
{
...
...
@@ -157,7 +157,7 @@ pipeline {
if
(
allParametersPresent
)
{
echo
"All parameters are present"
if
(
ran
AllowMergeRequestProcess
)
{
if
(
eNB_
AllowMergeRequestProcess
)
{
sh
"git fetch"
sh
"./ci-scripts/doGitLabMerge.sh --src-branch ${eNB_Branch} --src-commit ${eNB_CommitID} --target-branch ${eNB_TargetBranch} --target-commit latest"
}
else
{
...
...
@@ -198,12 +198,12 @@ pipeline {
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.EPC_Credentials}"
,
usernameVariable:
'EPC_Username'
,
passwordVariable:
'EPC_Password'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
"${params.ADB_Credentials}"
,
usernameVariable:
'ADB_Username'
,
passwordVariable:
'ADB_Password'
]
])
{
sh
"python3 main.py --mode=InitiateHtml --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${
ran
AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --ADBIPAddress=${params.ADB_IPAddress} --ADBUserName=${ADB_Username} --ADBPassword=${ADB_Password} ${mainPythonAllXmlFiles}"
sh
"python3 main.py --mode=InitiateHtml --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${
eNB_
AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --ADBIPAddress=${params.ADB_IPAddress} --ADBUserName=${ADB_Username} --ADBPassword=${ADB_Password} ${mainPythonAllXmlFiles}"
String
[]
myXmlTestSuite
=
testXMLFile
.
split
(
"\\r?\\n"
)
for
(
xmlFile
in
myXmlTestSuite
)
{
if
(
fileExists
(
xmlFile
))
{
try
{
sh
"python3 main.py --mode=TesteNB --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${
ran
AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --eNBSourceCodePath=${params.eNB_SourceCodePath} --eNB1IPAddress=${params.eNB1_IPAddress} --eNB1UserName=${eNB1_Username} --eNB1Password=${eNB1_Password} --eNB1SourceCodePath=${params.eNB1_SourceCodePath} --eNB2IPAddress=${params.eNB2_IPAddress} --eNB2UserName=${eNB2_Username} --eNB2Password=${eNB2_Password} --eNB2SourceCodePath=${params.eNB2_SourceCodePath} --EPCIPAddress=${params.EPC_IPAddress} --EPCType=${params.EPC_Type} --EPCUserName=${EPC_Username} --EPCPassword=${EPC_Password} --EPCSourceCodePath=${params.EPC_SourceCodePath} --ADBIPAddress=${params.ADB_IPAddress} --ADBUserName=${ADB_Username} --ADBPassword=${ADB_Password} --XMLTestFile=${xmlFile}"
sh
"python3 main.py --mode=TesteNB --ranRepository=${eNB_Repository} --ranBranch=${eNB_Branch} --ranCommitID=${eNB_CommitID} --ranAllowMerge=${
eNB_
AllowMergeRequestProcess} --ranTargetBranch=${eNB_TargetBranch} --eNBIPAddress=${params.eNB_IPAddress} --eNBUserName=${eNB_Username} --eNBPassword=${eNB_Password} --eNBSourceCodePath=${params.eNB_SourceCodePath} --eNB1IPAddress=${params.eNB1_IPAddress} --eNB1UserName=${eNB1_Username} --eNB1Password=${eNB1_Password} --eNB1SourceCodePath=${params.eNB1_SourceCodePath} --eNB2IPAddress=${params.eNB2_IPAddress} --eNB2UserName=${eNB2_Username} --eNB2Password=${eNB2_Password} --eNB2SourceCodePath=${params.eNB2_SourceCodePath} --EPCIPAddress=${params.EPC_IPAddress} --EPCType=${params.EPC_Type} --EPCUserName=${EPC_Username} --EPCPassword=${EPC_Password} --EPCSourceCodePath=${params.EPC_SourceCodePath} --ADBIPAddress=${params.ADB_IPAddress} --ADBUserName=${ADB_Username} --ADBPassword=${ADB_Password} --XMLTestFile=${xmlFile}"
}
catch
(
Exception
e
)
{
currentBuild
.
result
=
'FAILURE'
buildStageStatus
=
false
...
...
ci-scripts/Jenkinsfile-tmp-ran
View file @
4eaadf8d
...
...
@@ -54,7 +54,7 @@ termStatusArray[termHSS] = false
def
eNB_Repository
def
eNB_Branch
def
eNB_CommitID
def
ran
AllowMergeRequestProcess
=
false
def
eNB_
AllowMergeRequestProcess
=
false
def
eNB_TargetBranch
pipeline
{
...
...
@@ -145,8 +145,8 @@ pipeline {
}
echo
"eNB_CommitID : ${eNB_CommitID}"
if
(
params
.
eNB_mergeRequest
!=
null
)
{
ran
AllowMergeRequestProcess
=
params
.
eNB_mergeRequest
if
(
ran
AllowMergeRequestProcess
)
{
eNB_
AllowMergeRequestProcess
=
params
.
eNB_mergeRequest
if
(
eNB_
AllowMergeRequestProcess
)
{
if
(
params
.
eNB_TargetBranch
!=
null
)
{
eNB_TargetBranch
=
params
.
eNB_TargetBranch
}
else
{
...
...
@@ -178,7 +178,7 @@ pipeline {
if
(
allParametersPresent
)
{
echo
"All parameters are present"
if
(
ran
AllowMergeRequestProcess
)
{
if
(
eNB_
AllowMergeRequestProcess
)
{
sh
"git fetch"
sh
"./ci-scripts/doGitLabMerge.sh --src-branch ${eNB_Branch} --src-commit ${eNB_CommitID} --target-branch ${eNB_TargetBranch} --target-commit latest"
}
else
{
...
...
ci-scripts/Jenkinsfile-tmp-ue
View file @
4eaadf8d
...
...
@@ -54,7 +54,7 @@ termStatusArray[termHSS] = false
def
eNB_Repository
def
eNB_Branch
def
eNB_CommitID
def
ran
AllowMergeRequestProcess
=
false
def
eNB_
AllowMergeRequestProcess
=
false
def
eNB_TargetBranch
pipeline
{
...
...
@@ -116,8 +116,8 @@ pipeline {
}
echo
"eNB_CommitID : ${eNB_CommitID}"
if
(
params
.
eNB_mergeRequest
!=
null
)
{
ran
AllowMergeRequestProcess
=
params
.
eNB_mergeRequest
if
(
ran
AllowMergeRequestProcess
)
{
eNB_
AllowMergeRequestProcess
=
params
.
eNB_mergeRequest
if
(
eNB_
AllowMergeRequestProcess
)
{
if
(
params
.
eNB_TargetBranch
!=
null
)
{
eNB_TargetBranch
=
params
.
eNB_TargetBranch
}
else
{
...
...
@@ -149,7 +149,7 @@ pipeline {
if
(
allParametersPresent
)
{
echo
"All parameters are present"
if
(
ran
AllowMergeRequestProcess
)
{
if
(
eNB_
AllowMergeRequestProcess
)
{
sh
"git fetch"
sh
"./ci-scripts/doGitLabMerge.sh --src-branch ${eNB_Branch} --src-commit ${eNB_CommitID} --target-branch ${eNB_TargetBranch} --target-commit latest"
}
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