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

Adding fail safe scm

parent 616324b0
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,21 @@ parallel (
"nyu" : {node ('nyu')
{
deleteDir()
checkout scm
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(5000)
}
}
stage ('build_nyu')
{
sh "./build.sh $WORKSPACE $NODE_NAME"
......@@ -24,7 +38,21 @@ parallel (
{
deleteDir()
env.PATH = "/usr/local/bin:${env.PATH}"
checkout scm
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(5000)
}
}
stage ('build_sb15')
{
sh "echo $PATH && ./build.sh $WORKSPACE $NODE_NAME"
......@@ -41,7 +69,21 @@ parallel (
"gin" : {node ('gin')
{
deleteDir()
checkout scm
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(5000)
}
}
stage ('build_gin')
{
sh "echo $PATH && ./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