3 #------------------------------------------------------------------
7 # Purpose: Build debug and prof flavors of larcv and larlite on Jenkins.
9 # Created: 4-Aug-2017 H. Greenlee
11 #------------------------------------------------------------------
13 echo
"larcv ups version: $LARCV_VERSION"
14 echo
"larcv git tag: $LARCV_TAG"
15 echo
"larlite ups version: $LARLITE_VERSION"
16 echo
"larlite git tag: $LARLITE_TAG"
17 echo
"qualifier: $QUAL"
18 echo
"build type: $BUILDTYPE"
19 echo
"workspace: $WORKSPACE"
21 # Get number of cores to use.
24 #ncores=`sysctl -n hw.ncpu`
25 #ncores=$(( $ncores / 4 ))
30 if [ $ncores -lt 1 ]; then
33 echo
"Building using $ncores cores."
35 # Environment setup, uses /grid/fermiapp or cvmfs.
37 if [ -f /
grid/fermiapp/products/
uboone/setup_uboone.sh ]; then
39 elif [ -f /cvmfs/
uboone.opensciencegrid.org/products/setup_uboone.sh ]; then
40 if [ -
x /cvmfs/
grid.cern.ch/util/cvmfs-uptodate ]; then
41 /cvmfs/
grid.cern.ch/util/cvmfs-uptodate /cvmfs/
uboone.opensciencegrid.org/products
45 echo
"No setup file found."
49 # Use system git on macos.
55 # Set up working area.
58 rm -rf $WORKSPACE/temp ||
exit 1
61 rm -f $WORKSPACE/copyBack
then source grid fermiapp products dune setup_dune_fermiapp sh exit else echo No setup file found exit fi setup
process_name opflash particleana ie x
then cvmfs grid cern ch util cvmfs uptodate cvmfs uboone opensciencegrid org products fi source cvmfs uboone opensciencegrid org products setup_uboone sh exit else echo No setup file found exit fi if!uname grep q Darwin
then source cvmfs dune opensciencegrid org products dune setup_dune sh exit elif[-f/grid/fermiapp/products/dune/setup_dune_fermiapp.sh]