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

Fixing build

parent 8bf600b2
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ parallel (
checkout scm
stage ('build_gin')
{
sh "./build.sh $WORKSPACE $NODE_NAME pdata && make install"
sh "./build.sh $WORKSPACE $NODE_NAME pdata full && make install"
}
stage ('run_example_gin')
......@@ -24,7 +24,7 @@ parallel (
env.PATH = "/usr/local/bin:${env.PATH}"
stage ('build_sb15')
{
sh "./build.sh $WORKSPACE $NODE_NAME pdata && make install"
sh "./build.sh $WORKSPACE $NODE_NAME pdata full && make install"
}
stage ('run_example_sb15')
......
......@@ -27,8 +27,12 @@ then
echo "Compiling on gin\n"
source ~/.bashrc
module load gcc/4.9.2
./install -m -s -c "--prefix=/home/jenkins/openfpm_install"
make $3
if [ x"$4" == x"full" ]; then
./install -s -c "--prefix=/home/jenkins/openfpm_install"
else
./install -m -s -c "--prefix=/home/jenkins/openfpm_install"
make $4
fi
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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
exit 1 ;
......@@ -36,10 +40,6 @@ then
source $HOME/openfpm_vars
if [ x"$3" == x"no_test" ]; then
exit 0;
fi
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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
exit 1 ;
......@@ -92,17 +92,19 @@ then
else
echo "Compiling general"
source ~/.bashrc
./install -m -s -c"--prefix=/Users/jenkins/openfpm_install"
make $3
if [ x"$4" == x"full" ]; then
./install -s -c "--prefix=/Users/jenkins/openfpm_install"
else
./install -m -s -c "--prefix=/Users/jenkins/openfpm_install"
make $4
fi
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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
exit 1 ;
fi
if [ x"$3" == x"no_test" ]; then
exit 0;
fi
fi
curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\" , \"attachments\":[{ \"title\":\"Info:\", \"color\": \"#00FF00\", \"text\":\"$2 completed succeffuly the openfpm_pdata test \" }] }" https://hooks.slack.com/services/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
......
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