Commit 169a3037 authored by incardon's avatar incardon

Adding fail safe scm

parent 616324b0
......@@ -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"
......
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