Commit fb30fd0b authored by Boris Djalal's avatar Boris Djalal

Adding Jenkins resource lock.

Signed-off-by: default avatarBoris Djalal <boris.djalal@eurecom.fr>
parent ea8a4ebc
...@@ -36,6 +36,9 @@ def testXMLFile = params.pythonTestXmlFile ...@@ -36,6 +36,9 @@ def testXMLFile = params.pythonTestXmlFile
def mainPythonAllXmlFiles = "" def mainPythonAllXmlFiles = ""
def BUILD_STAGE_STATUS = true def BUILD_STAGE_STATUS = true
// Name of the phone resource
def ciUSRPsResource = params.USRPsResource
// Terminate Status // Terminate Status
def termUE = 0 def termUE = 0
def termENB = 1 def termENB = 1
...@@ -73,6 +76,7 @@ pipeline { ...@@ -73,6 +76,7 @@ pipeline {
timestamps() timestamps()
gitLabConnection('OAI GitLab') gitLabConnection('OAI GitLab')
ansiColor('xterm') ansiColor('xterm')
lock (ciUSRPsResource)
} }
stages { stages {
...@@ -148,6 +152,11 @@ pipeline { ...@@ -148,6 +152,11 @@ pipeline {
// picking default // picking default
testStageName = 'Template Test Stage' testStageName = 'Template Test Stage'
} }
if (params.USRPsResource == null) {
allParametersPresent = false
}
echo "params.eNB_IPAddress = ${params.eNB_IPAddress}" echo "params.eNB_IPAddress = ${params.eNB_IPAddress}"
if (params.eNB_IPAddress == null) { if (params.eNB_IPAddress == null) {
allParametersPresent = false allParametersPresent = false
......
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