Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jenkins.debian.net
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
Debian QA
jenkins.debian.net
Commits
023110e7
Commit
023110e7
authored
3 years ago
by
Holger Levsen
Browse files
Options
Downloads
Patches
Plain Diff
only include rsync output if $DEBUG is enabled
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
e59f4953
No related branches found
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
bin/reproducible_html_rsync_remote_results.sh
+6
-1
6 additions, 1 deletion
bin/reproducible_html_rsync_remote_results.sh
with
6 additions
and
1 deletion
bin/reproducible_html_rsync_remote_results.sh
+
6
−
1
View file @
023110e7
...
...
@@ -17,7 +17,12 @@ rsync_remote_results() {
echo
"
$(
date
-u
)
- Starting to rsync results for '
$PROJECT
'."
local
RESULTS
=
$(
mktemp
--tmpdir
=
$BASE
/..
-d
reproducible-rsync-
${
BUILD_ID
}
-XXXXXXXXX
)
# copy the new results from build node to webserver node
if
rsync
-r
-v
-e
"ssh -o 'Batchmode = yes'"
$NODE
:
$BASE
/
$PROJECT
/
$RESULTS
;
then
if
$DEBUG
;
then
RSYNCCMD
=
"rsync -r -v -e
\"
ssh -o 'Batchmode = yes'
\"
$NODE
:
$BASE
/
$PROJECT
/
$RESULTS
2>/dev/null"
else
RSYNCCMD
=
"rsync -r -v -e
\"
ssh -o 'Batchmode = yes'
\"
$NODE
:
$BASE
/
$PROJECT
/
$RESULTS
"
fi
if
eval
$RSYNCCMD
;
then
chmod
775
$RESULTS
# move old results out of the way
if
[
-d
$BASE
/
$PROJECT
]
;
then
...
...
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