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

Adding Jenkinsfile_mpi

parent 199c3099
No related branches found
No related tags found
No related merge requests found
#!groovy
parallel (
"centos" : {node ('cifarm-centos-node')
{
stage ('centos_build')
{
deleteDir()
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(50)
}
}
sh "./build.sh $WORKSPACE $NODE_NAME"
}
stage ('centos_run')
{
sh "./src/mem"
sh "./success.sh 2 centos openfpm_devices"
}
}},
"ubuntu" : {node ('cifarm-ubuntu-node')
{
stage ('ubuntu_build')
{
deleteDir()
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(50)
}
}
sh "./build.sh $WORKSPACE $NODE_NAME"
}
stage ('ubuntu_run')
{
sh "./src/mem"
sh "./success.sh 2 ubuntu openfpm_devices"
}
}},
"macos" : {node ('cifarm-mac-node')
{
env.PATH = "/usr/local/bin:${env.PATH}"
stage ('mac_build')
{
deleteDir()
int ntry = 5
while (ntry != 0)
{
try {
checkout scm
ntry = 0
}
catch (IOException e)
{
ntry--
sleep(50)
}
}
sh "./build.sh $WORKSPACE $NODE_NAME"
}
stage ('mac_run')
{
sh "./src/mem"
sh "./success.sh 2 macos openfpm_devices"
}
}}
)
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