Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
O
openfpm_io
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_io
Commits
642c973a
Commit
642c973a
authored
Oct 24, 2016
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding jenkins pipeline
parent
5cf76966
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
0 deletions
+121
-0
Jenkinsfile
Jenkinsfile
+55
-0
build.sh
build.sh
+42
-0
run.sh
run.sh
+24
-0
No files found.
Jenkinsfile
0 → 100644
View file @
642c973a
#
!
groovy
parallel
(
"nyu"
:
{
node
(
'nyu'
)
{
deleteDir
()
checkout
scm
stage
(
'build_nyu'
)
{
sh
"./build.sh $WORKSPACE $NODE_NAME"
}
stage
(
'run_nyu'
)
{
sh
"cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME"
}
}
},
"sb15"
:
{
node
(
'sbalzarini-mac-15'
)
{
deleteDir
()
env
.
PATH
=
"/usr/local/bin:${env.PATH}"
checkout
scm
stage
(
'build_sb15'
)
{
sh
"echo $PATH && ./build.sh $WORKSPACE $NODE_NAME"
}
stage
(
'run_sb15_val'
)
{
sh
"cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME"
}
}
},
"gin"
:
{
node
(
'gin'
)
{
deleteDir
()
checkout
scm
stage
(
'build_gin'
)
{
sh
"echo $PATH && ./build.sh $WORKSPACE $NODE_NAME"
}
stage
(
'run_gin'
)
{
sh
"cd openfpm_data && ./run.sh $WORKSPACE $NODE_NAME"
}
}
}
)
build.sh
0 → 100755
View file @
642c973a
#! /bin/bash
source
$HOME
/.bashrc
echo
"
$PATH
"
# Make a directory in /tmp/openfpm_data
mkdir
/tmp/openfpm_io
mv
*
.[^.]
*
/tmp/openfpm_io
mv
/tmp/openfpm_io openfpm_io
mkdir
openfpm_io/src/config
git clone git@git.mpi-cbg.de:openfpm/openfpm_devices.git openfpm_devices
git clone git@git.mpi-cbg.de:openfpm/openfpm_data.git openfpm_data
git clone git@git.mpi-cbg.de:openfpm/openfpm_pdata.git openfpm_pdata
git clone git@git.mpi-cbg.de:openfpm/openfpm_vcluster.git openfpm_vcluster
cd
"
$1
/openfpm_io"
echo
"Compiling on
$2
"
sh ./autogen.sh
if
[
"
$2
"
==
"master"
]
then
sh ./configure
CXX
=
mpic++
--with-hdf5
=
$HOME
/HDF5/bin/h5pcc
--disable-gpu
elif
[
"
$2
"
==
"gin"
]
then
module load gcc/4.8.2
module load boost/1.54.0
sh ./configure
CXX
=
mpic++
--with-boost
=
/sw/apps/boost/1.54.0/
--with-hdf5
=
$HOME
/HDF5/bin/h5pcc
else
sh ./configure
CXX
=
mpic++
--with-hdf5
=
$HOME
/HDF5/bin/h5pcc
fi
make
if
[
$?
-ne
0
]
;
then
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Error:
\"
,
\"
color
\"
:
\"
#FF0000
\"
,
\"
text
\"
:
\"
$2
failed to compile the openfpm_io test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
run.sh
0 → 100755
View file @
642c973a
#! /bin/bash
source
$HOME
/.bashrc
echo
"
$PATH
"
# Make a directory in /tmp/openfpm_data
cd
"
$1
/openfpm_io"
if
[
"
$2
"
==
"gin"
]
then
module load gcc/4.8.2
module load boost/1.54.0
fi
./src/io
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_io test
\"
}] }"
https://hooks.slack.com/services/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
exit
1
;
fi
curl
-X
POST
--data
"payload={
\"
icon_emoji
\"
:
\"
:jenkins:
\"
,
\"
username
\"
:
\"
jenkins
\"
,
\"
attachments
\"
:[{
\"
title
\"
:
\"
Info:
\"
,
\"
color
\"
:
\"
#00FF00
\"
,
\"
text
\"
:
\"
$2
completed succeffuly the openfpm_io test
\"
}] }"
https://hooks.slack.com/services/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment