3 # build uboonecode and uboone suite packages.
5 # designed to work on Jenkins
7 # Extract set qualifier from $LARSOFT_QUAL (we don't care about anything else in $LARSOFT_QUAL).
9 SQUAL=`echo $LARSOFT_QUAL | tr :
'\n' | grep ^
s`
11 echo
"uboonecode version: $VERSION"
12 echo
"base qualifiers: $QUAL"
13 echo
"set qualifier: $SQUAL"
14 echo
"build type: $BUILDTYPE"
15 echo
"workspace: $WORKSPACE"
17 # Parse qualifier parameter into base qualifier and label (if any).
18 # Use hyphen as separator.
22 quals=`echo $QUAL | tr
'-' ' '`
25 if [[ $q ==
e* || $q == c* ]]; then
31 echo
"basequal: $basequal"
34 if [
x$basequal =
x ]; then
35 echo
"No base qualifier."
39 # Create area for biuld artifacts.
40 rm -rf $WORKSPACE/copyBack
43 # Check for unsupported combinations of base qualifier, OS, and build label.
44 if [[ `uname -
s` ==
Darwin ]] && [[ $basequal ==
e* ]]; then
45 echo
"${basequal} build not supported on `uname -s`"
46 echo
"${basequal} build not supported on `uname -s`" > $WORKSPACE/copyBack/skipping_build
49 if [[ `uname -
s` ==
Darwin ]] && [[
x$label == xpy2 ]]; then
50 echo
"Python 2 build not supported on `uname -s`"
51 echo
"Python 2 build not supported on `uname -s`" > $WORKSPACE/copyBack/skipping_build
54 if [[ `uname -
s` ==
Linux ]] && [[ `lsb_release -rs` == 6* ]] && [[
x$label ==
x ]] && [[ $basequal != e17 ]] && [[ $basequal != c2 ]]; then
55 echo
"Python 3 build not supported on SL6"
56 echo
"Python 3 build not supported on SL6" > $WORKSPACE/copyBack/skipping_build
60 # Create build directory and go there.
61 blddir=${WORKSPACE}/build
62 logdir=${WORKSPACE}/log
69 # Fetch buildFW script.
70 echo
"Fetching buildFW."
71 curl --fail --silent --location --insecure -
O http:
78 if [
x$label =
x ]; then
79 ./buildFW -t -b $basequal -
s $SQUAL $blddir $BUILDTYPE
uboone-$VERSION || \
84 ./buildFW -t -b $basequal -
s $SQUAL -l $label $blddir $BUILDTYPE
uboone-$VERSION || \
92 mv *.log $logdir ||
exit 1
96 mv ub*.bz2 $WORKSPACE/copyBack/ ||
exit 1
97 mv larlite*.bz2 $WORKSPACE/copyBack/ ||
exit 1
98 mv larcv*.bz2 $WORKSPACE/copyBack/ ||
exit 1
99 mv swtrigger*.bz2 $WORKSPACE/copyBack/ ||
exit 1
100 mv *.txt $WORKSPACE/copyBack/ ||
exit 1
101 mv wcp*.bz2 $WORKSPACE/copyBack/ || echo
"No wcp tarball"
106 rm -rf $blddir ||
exit 1
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
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
then echo File list $list not found else cat $list while read file do echo $file sed s