Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
oai-cn5g-fed
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
cn5g
oai-cn5g-fed
Commits
76f2e547
Commit
76f2e547
authored
3 years ago
by
Raphael Defosseux
Browse files
Options
Downloads
Patches
Plain Diff
feat(ci): able to select which branch to run pipeline on
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
14cb56c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci-scripts/Jenkinsfile-GitLab-Docker-Check
+7
-17
7 additions, 17 deletions
ci-scripts/Jenkinsfile-GitLab-Docker-Check
with
7 additions
and
17 deletions
ci-scripts/Jenkinsfile-GitLab-Docker-Check
+
7
−
17
View file @
76f2e547
...
...
@@ -37,11 +37,6 @@ def cn_ci_host = params.Host_CN_CI_Server
// for lock
def
cn_ci_resource
=
params
.
DockerContainers
// Location of the 2nd CN executor
def
new_host_flag
=
false
def
new_host
=
""
def
new_host_user
=
""
//-------------------------------------------------------------------------------
// Pipeline start
pipeline
{
...
...
@@ -63,21 +58,16 @@ pipeline {
JOB_TIMESTAMP
=
sh
returnStdout:
true
,
script:
'date --utc --rfc-3339=seconds | sed -e "s#+00:00##"'
JOB_TIMESTAMP
=
JOB_TIMESTAMP
.
trim
()
if
(
params
.
Host_CN_CI_2nd_Server_Flag
!=
null
)
{
new_host_flag
=
params
.
Host_CN_CI_2nd_Server_Flag
if
(
new_host_flag
)
{
new_host
=
params
.
Host_CN_CI_2nd_Server
new_host_user
=
params
.
Host_CN_CI_2nd_Server_Login
echo
"1st Node is ${NODE_NAME}"
echo
"2nd Node is ${new_host}"
}
else
{
echo
"Node is ${NODE_NAME}"
sh
"git clean -x -d -f > /dev/null 2>&1"
if
(
params
.
CheckAnotherBranch
!=
null
)
{
if
(
params
.
CheckAnotherBranch
)
{
if
(
params
.
BranchToCheck
!=
null
)
{
sh
'git checkout params.BranchToCheck'
sh
'git log -n1'
}
}
}
else
{
echo
"Node is ${NODE_NAME}"
}
sh
"git clean -x -d -f > /dev/null 2>&1"
sh
"mkdir -p archives/cn5g"
sh
"mkdir -p archives/cn5gwithnoNRF"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment