diff --git a/Jenkinsfile b/Jenkinsfile index d2b2ab779cc8d684c33f4eac4276c578e8fd0c8c..3d0c3cb82aabaf3659e703a2be414be1f3535746 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,12 +9,18 @@ def generateStage(id, dset) { stage("stage: ${id}") { node("lxplus") { sh script: """ + export X509_USER_PROXY=$HOME/grid_proxy.x509 scram project ${CMSSW_RELEASE} cd ${CMSSW_RELEASE}/src eval `scramv1 runtime -sh` git clone -b EcalAutomation https://gitlab.cern.ch/fmonti/ECALELF.git Calibration git clone -b EcalAutomation https://github.com/fabio-mon/LSFsubmit.git Tools/LSFsubmit/scripts + ################ + # temp hack to not submit jobs but still comunicate with the database (if --EcalAutomation is set) + sed -i "s/condor_submit/#condor_submit/g" ${CMSSW_RELEASE}/src/Tools/LSFsubmit/scripts/submit + ################ scram b -j + source ${CMSSW_RELEASE}/Calibration/initCmsEnv.sh cd - echo "${dset}" """ @@ -37,6 +43,25 @@ pipeline { } } } + stage('Create jobs') { + steps { + sh """ + pwd + cd $CMSSW_BASE/src/Calibration/EcalAlCaRecoProducers/ + + ./scripts/prodNtuples.sh --type=MINIAOD -t config/reRecoTags/106X_MCRun2_UL16_Pre.py -s noSkim --isMC --scheduler=caf --extraName=UL2016_testJenkins1 -r allRange -d /DYJetsToLL_M-50_TuneCP5_13TeV-amcatnloFXFX-pythia8/RunIISummer19UL16MiniAODAPV-106X_mcRun2_asymptotic_preVFP_v8-v1/MINIAODSIM -n DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP --store caf --remote_dir database VALID Run2016UL_SS_PreVFP, --doEleIDTree --ntuple_remote_dir group/dpg_ecal/alca_ecalcalib/ecalelf/ntuples/fmonti/ # --EcalAutomation + """ + } + } + stage('Test job') { + steps { + sh """ + pwd + cd ${CMSSW_RELEASE}/src/Calibration/EcalAlCaRecoProducers/ + ./prod_ntuples/MINIAODNTUPLE/106X_MCRun2_UL16_Pre/DYJets_M50-CP5-amcatnlo-Run2016UL-MC-PreVFP/allRange//UL2016_testJenkins1/share/run.sh 5 $X509_USER_PROXY + """ + } + } stage('Wrap up') { steps { updateGitlabCommitStatus name: 'build', state: 'success'