Skip to content
Snippets Groups Projects
Commit 90076f0c authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Adding fail safe SCM

parent 03ee21ce
No related branches found
No related tags found
No related merge requests found
......@@ -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"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment