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
Michael Black
OpenXG-RAN
Commits
11eab688
Commit
11eab688
authored
Sep 15, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix executor agent syntax
parent
fceea50a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
24 deletions
+10
-24
ci-scripts/Jenkinsfile-tmp-multi-enb-nsa
ci-scripts/Jenkinsfile-tmp-multi-enb-nsa
+10
-24
No files found.
ci-scripts/Jenkinsfile-tmp-multi-enb-nsa
View file @
11eab688
...
...
@@ -51,15 +51,12 @@ def StatusForDb = ""
pipeline
{
agent
none
agent
{
label
pythonExecutor
}
options
{
disableConcurrentBuilds
()
ansiColor
(
'xterm'
)
lock
(
extra:
[[
resource:
ciSmartPhonesResource2
]],
resource:
ciSmartPhonesResource1
)
}
stages
{
stage
(
"Py Exec"
){
agent
{
label
pythonExecutor
}
stages
{
stage
(
"Build Init"
)
{
steps
{
...
...
@@ -276,31 +273,21 @@ pipeline {
}
}
}
}
}
}
}
stage
(
"DB Host"
){
agent
{
label
DataBaseHost
}
stages
{
stage
(
"SQL Collect "
)
{
steps
{
script
{
if
(
currentBuild
.
result
==
'FAILURE'
)
{
StatusForDb
=
'FAIL'
}
else
{
StatusForDb
=
'PASS'
}
sh
"python3 /home/oaicicd/mysql/sql_connect.py ${JOB_NAME} ${params.eNB_MR} ${params.eNB_Branch} ${env.BUILD_ID} ${env.BUILD_URL} ${StatusForDb} ''"
stage
(
"SQL Collect"
){
agent
{
label
DataBaseHost
}
steps
{
script
{
if
(
currentBuild
.
result
==
'FAILURE'
)
{
StatusForDb
=
'FAIL'
}
else
{
StatusForDb
=
'PASS'
}
sh
"python3 /home/oaicicd/mysql/sql_connect.py ${JOB_NAME} ${params.eNB_MR} ${params.eNB_Branch} ${env.BUILD_ID} ${env.BUILD_URL} ${StatusForDb} ''"
}
}
}
}
}
}
}
}
}
post
{
always
{
node
(
pythonExecutor
){
script
{
if
(
params
.
pipelineZipsConsoleLog
!=
null
)
{
if
(
params
.
pipelineZipsConsoleLog
)
{
...
...
@@ -314,6 +301,5 @@ pipeline {
}
}
}
}
}
}
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