Commit 90076f0c authored by incardon's avatar incardon

Adding fail safe SCM

parent 03ee21ce
......@@ -7,7 +7,21 @@ parallel (
stage ('gin_build')
{
deleteDir()
checkout scm
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(5000)
}
}
sh "./build.sh $WORKSPACE $NODE_NAME"
}
......@@ -23,7 +37,21 @@ parallel (
stage ('nyu_build')
{
deleteDir()
checkout scm
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(5000)
}
}
sh "./build.sh $WORKSPACE $NODE_NAME"
}
......@@ -40,7 +68,21 @@ parallel (
stage ('sb15_build')
{
deleteDir()
checkout scm
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(5000)
}
}
sh "./build.sh $WORKSPACE $NODE_NAME"
}
......
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