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
ZhouShuya
OpenXG-RAN
Commits
d03f67d3
Commit
d03f67d3
authored
Apr 17, 2019
by
Boris Djalal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
Signed-off-by:
Boris Djalal
<
boris.djalal@eurecom.fr
>
parent
e14deca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
ci-scripts/test-boris-Jenkinsfile
ci-scripts/test-boris-Jenkinsfile
+19
-1
No files found.
ci-scripts/test-boris-Jenkinsfile
View file @
d03f67d3
...
@@ -21,6 +21,17 @@
...
@@ -21,6 +21,17 @@
*/
*/
// Abstraction function to send social media messages:
// like on Slack or Mattermost
def
sendSocialMediaMessage
(
pipeChannel
,
pipeColor
,
pipeMessage
)
{
if
(
params
.
pipelineUsesSlack
!=
null
)
{
if
(
params
.
pipelineUsesSlack
)
{
slackSend
channel:
pipeChannel
,
color:
pipeColor
,
message:
pipeMessage
}
}
}
// Location of the test XML file to be run
// Location of the test XML file to be run
def
testXMLFile
=
params
.
pythonTestXmlFile
def
testXMLFile
=
params
.
pythonTestXmlFile
def
mainPythonAllXmlFiles
=
""
def
mainPythonAllXmlFiles
=
""
...
@@ -114,22 +125,29 @@ pipeline {
...
@@ -114,22 +125,29 @@ pipeline {
if
(
params
.
UE_Credentials
==
null
)
{
if
(
params
.
UE_Credentials
==
null
)
{
allParametersPresent
=
false
allParametersPresent
=
false
}
}
echo
"begin if 1"
if
(
params
.
eNB_Repository
==
null
)
{
if
(
params
.
eNB_Repository
==
null
)
{
echo
"then 1"
eNB_Repository
=
$
{
GIT_URL
}
eNB_Repository
=
$
{
GIT_URL
}
}
else
{
}
else
{
echo
"else 1"
eNB_Repository
=
params
.
eNB_Repository
eNB_Repository
=
params
.
eNB_Repository
}
}
echo
"
test
"
echo
"
end if 1
"
echo
"eNB_Repository = ${eNB_Repository}"
echo
"eNB_Repository = ${eNB_Repository}"
echo
"allParametersPresent = ${allParametersPresent}"
echo
"allParametersPresent = ${allParametersPresent}"
echo
"begin if 2"
if
(
allParametersPresent
)
{
if
(
allParametersPresent
)
{
echo
"then 2"
echo
"All parameters are present"
echo
"All parameters are present"
sh
"git fetch"
sh
"git fetch"
sh
"git checkout -f ${eNB_CommitID}"
sh
"git checkout -f ${eNB_CommitID}"
}
else
{
}
else
{
echo
"else 2"
echo
"Some parameters are missing"
echo
"Some parameters are missing"
sh
"./ci-scripts/fail.sh"
sh
"./ci-scripts/fail.sh"
}
}
echo
"end if 2"
}
}
}
}
}
}
...
...
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