Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZJet Analysis
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cedric Verstege
ZJet Analysis
Commits
1aa64f4d
Commit
1aa64f4d
authored
2 months ago
by
Cedric Verstege
Browse files
Options
Downloads
Patches
Plain Diff
Improve Error handling in Bootstrap file
parent
fee2b79d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
analysis/tasks/Remote/bootstrap.sh
+10
-1
10 additions, 1 deletion
analysis/tasks/Remote/bootstrap.sh
with
10 additions
and
1 deletion
analysis/tasks/Remote/bootstrap.sh
+
10
−
1
View file @
1aa64f4d
...
...
@@ -33,6 +33,10 @@ bootstrap_htcondor_standalone() {
mkdir
-p
"
${
ANALYSIS_BASE
}
"
cd
"
${
ANALYSIS_BASE
}
"
||
exit
"
$?
"
law_wlcg_get_file
"{{repo_uris}}"
'{{repo_pattern}}'
"
${
ANALYSIS_BASE
}
/repo.tgz"
||
return
"
$?
"
if
[
!
-f
"repo.tgz"
]
;
then
echo
"Repo bundle does not exist. Exiting..."
return
1
fi
tar
-xzf
"repo.tgz"
||
return
"
$?
"
rm
-f
"repo.tgz"
echo
"Analysis repo setup done."
...
...
@@ -46,6 +50,10 @@ bootstrap_htcondor_standalone() {
scramv1 project CMSSW
"
${
CMSSW_VERSION
}
"
cd
"
${
CMSSW_VERSION
}
"
||
return
"
$?
"
law_wlcg_get_file
"{{cmssw_uris}}"
'{{cmssw_pattern}}'
"
${
PWD
}
/cmssw.tgz"
||
return
"
$?
"
if
[
!
-f
"cmssw.tgz"
]
;
then
echo
"CMSSW bundle does not exist. Exiting..."
return
1
fi
tar
-xzf
"cmssw.tgz"
||
return
"
$?
"
rm
-f
"cmssw.tgz"
cd
"src"
||
return
"
$?
"
...
...
@@ -57,7 +65,8 @@ bootstrap_htcondor_standalone() {
# source the repo setup
echo
"export CMSSW_DIR=
${
CMSSW_BASE
}
/
${
CMSSW_VERSION
}
"
>
"
$ANALYSIS_BASE
/cmssw.conf"
cd
"
${
ANALYSIS_BASE
}
"
||
return
"
$?
"
source
"
${
ANALYSIS_BASE
}
/setup.sh"
"default"
||
return
"
$?
"
sleep
10
# filesystem catch-up
source
"
${
ANALYSIS_BASE
}
/setup.sh"
||
return
"
$?
"
return
"0"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment