Commit 904f2143 authored by Raphael Defosseux's avatar Raphael Defosseux

Adding the slave pipeline script

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 4a164d45
Pipeline #10189 passed with stage
in 0 seconds
#!/bin/groovy
pipeline {
agent {
label 'bellatrix'
}
options {
disableConcurrentBuilds()
timestamps()
}
stages {
stage ("Verify") {
steps {
script {
def allParametersPresent = true
echo params.eNB_IPaddress
if (params.eNB_Repository == null) {
echo "missing git url parameter"
allParametersPresent = false
} else {
echo params.eNB_Repository
}
if (params.eNB_Branch == null) {
echo "missing git branch parameter"
allParametersPresent = false
} else {
echo params.eNB_Branch
}
if (params.eNB_CommitID == null) {
echo "missing git commit parameter"
allParametersPresent = false
} else {
echo params.eNB_CommitID
}
if (params.eNB_manageMergeRequest == null) {
echo "missing gitlab merge request manage boolean parameter"
allParametersPresent = false
} else {
if (params.eNB_manageMergeRequest) {
echo "Slave job manages GitLab merge process"
} else {
echo "Slave job DO NOT manage GitLab merge process"
}
}
if (allParametersPresent) {
echo "All parameters are present"
//deleteDir()
//sh "git clone ${params.eNB_Repository}"
//sh "cd openair-ci-sandbox; git checkout -f ${params.eNB_CommitID}"
} else {
echo "Some parameters are missing"
}
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment