publishscisoft.sh
Go to the documentation of this file.
1 #!/bin/bash
2 scratch_dir=${HOME}/tmp
3 
4 function publishscisoft(){
5  local ts=$(date -d "today" +"%Y%m%d%H%M%S")
6  local tmp_packages="${scratch_dir}/publish-${ts}"
7 
8  mkdir -p ${tmp_packages} || exit 1
9  cd ${tmp_packages}
10 
11  curl -O https://scisoft.fnal.gov/scisoft/bundles/tools/copyFromJenkins
12  chmod a+x copyFromJenkins
13 
14  curl -O https://scisoft.fnal.gov/scisoft/bundles/tools/copyToSciSoft
15  chmod a+x copyToSciSoft
16 
17  ./copyFromJenkins \
18 -m SLF7 \
19 -q e19 \
20  garana-build
21 
22 
23 find ./ -name "*bz2" |xargs -n 1 -I {} ./copyToSciSoft --node scisoftportal.fnal.gov {}
24 }
25 
26 publishscisoft