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

Dependencied per branch

parent a34deb81
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ parallel ( ...@@ -9,7 +9,7 @@ parallel (
checkout scm checkout scm
stage ('build_nyu') stage ('build_nyu')
{ {
sh "./build.sh $WORKSPACE $NODE_NAME pdata" sh "./build.sh $WORKSPACE $NODE_NAME pdata env.BRANCH_NAME"
} }
stage ('run_nyu') stage ('run_nyu')
...@@ -34,7 +34,7 @@ parallel ( ...@@ -34,7 +34,7 @@ parallel (
checkout scm checkout scm
stage ('build_sb15') stage ('build_sb15')
{ {
sh "./build.sh $WORKSPACE $NODE_NAME pdata" sh "./build.sh $WORKSPACE $NODE_NAME pdata env.BRANCH_NAME"
} }
stage ('run_sb15') stage ('run_sb15')
...@@ -61,7 +61,7 @@ parallel ( ...@@ -61,7 +61,7 @@ parallel (
checkout scm checkout scm
stage ('build_gin') stage ('build_gin')
{ {
sh "./build.sh $WORKSPACE $NODE_NAME pdata" sh "./build.sh $WORKSPACE $NODE_NAME pdata env.BRANCH_NAME"
} }
stage ('run_gin') stage ('run_gin')
......
...@@ -27,13 +27,14 @@ then ...@@ -27,13 +27,14 @@ then
echo "Compiling on gin\n" echo "Compiling on gin\n"
source ~/.bashrc source ~/.bashrc
module load gcc/4.9.2 module load gcc/4.9.2
mkdir $HOME/$5
if [ x"$4" == x"full" ]; then if [ x"$4" == x"full" ]; then
./install -s -c "--prefix=/home/jenkins/openfpm_install" ./install -i $HOME/$5 -s -c "--prefix=/home/jenkins/openfpm_install"
elif [ x"$3" == x"numerics" ]; then elif [ x"$3" == x"numerics" ]; then
./install -m -s -c "--prefix=/home/jenkins/openfpm_install" ./install -i $HOME/$5 -m -s -c "--prefix=/home/jenkins/openfpm_install"
make $3 make $3
else else
./install -m -s -c "--prefix=/home/jenkins/openfpm_install --no-recursion" ./install -i $HOME/$5 -m -s -c "--prefix=/home/jenkins/openfpm_install --no-recursion"
make $3 make $3
fi fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
...@@ -83,7 +84,8 @@ then ...@@ -83,7 +84,8 @@ then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/incard/PARMETIS/lib:/home/incard/METIS/lib:/home/incard/HDF5/lib" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/incard/PARMETIS/lib:/home/incard/METIS/lib:/home/incard/HDF5/lib"
./install -m -i "/scratch/p_ppm/" -s -c"CXX=mpic++ --no-recursion" mkdir /scratch/p_ppm/$5
./install -m -i "/scratch/p_ppm/$5" -s -c"CXX=mpic++ --no-recursion"
make $3 make $3
source $HOME/openfpm_vars source $HOME/openfpm_vars
...@@ -96,13 +98,14 @@ else ...@@ -96,13 +98,14 @@ else
echo "Compiling general" echo "Compiling general"
source ~/.bashrc source ~/.bashrc
mkdir $HOME/$5
if [ x"$4" == x"full" ]; then if [ x"$4" == x"full" ]; then
./install -s -c "--prefix=/Users/jenkins/openfpm_install" ./install -i $HOME/$5 -s -c "--prefix=/Users/jenkins/openfpm_install"
elif [ x"$3" == x"numerics" ]; then elif [ x"$3" == x"numerics" ]; then
./install -m -s -c "--prefix=/home/jenkins/openfpm_install" ./install -i $HOME/$5 -m -s -c "--prefix=/home/jenkins/openfpm_install"
make $3 make $3
else else
./install -m -s -c "--prefix=/Users/jenkins/openfpm_install --no-recursion" ./install -i $HOME/$5 -m -s -c "--prefix=/Users/jenkins/openfpm_install --no-recursion"
make $3 make $3
fi fi
......
...@@ -27,7 +27,8 @@ then ...@@ -27,7 +27,8 @@ then
echo "Compiling on gin\n" echo "Compiling on gin\n"
source ~/.bashrc source ~/.bashrc
module load gcc/4.9.2 module load gcc/4.9.2
./install -s -c "--prefix=/home/jenkins/openfpm_install" mkdir $HOME/$4
./install -i $HOME/$4 -s -c "--prefix=/home/jenkins/openfpm_install"
make make
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\" , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_pdata test \" }] }" https://hooks.slack.com/services/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 curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\" , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_pdata test \" }] }" https://hooks.slack.com/services/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
...@@ -200,7 +201,8 @@ then ...@@ -200,7 +201,8 @@ then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/incard/PARMETIS/lib:/home/incard/METIS/lib:/home/incard/HDF5/lib" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/incard/PARMETIS/lib:/home/incard/METIS/lib:/home/incard/HDF5/lib"
./install -i "/scratch/p_ppm/" -s -c"CXX=mpic++" mkdir "/scratch/p_ppm/$4"
./install -i "/scratch/p_ppm/$4" -s -c"CXX=mpic++"
make make
source $HOME/openfpm_vars source $HOME/openfpm_vars
...@@ -242,7 +244,8 @@ then ...@@ -242,7 +244,8 @@ then
else else
echo "Compiling general" echo "Compiling general"
source ~/.bashrc source ~/.bashrc
./install -s mkdir $HOME/$4
./install -i $HOME/$4 -s
make make
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
...@@ -264,7 +267,7 @@ else ...@@ -264,7 +267,7 @@ else
mpirun -np 2 ./src/pdata mpirun -np 2 ./src/pdata
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\" , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_pdata test \" }] }" https://hooks.slack.com/services/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 curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\" , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_pdata test \" }] }" https://hooks.slack.com/services/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
exit 1 ; exit 1 ;
fi fi
mpirun -np 3 ./src/pdata mpirun -np 3 ./src/pdata
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
......
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