Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
ee995b43
Verified
Commit
ee995b43
authored
Sep 02, 2022
by
Mattia Rizzolo
Browse files
node wrapper: accept both scp -p and plain scp
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
41fd4fd9
Changes
1
Show whitespace changes
Inline
Side-by-side
bin/jenkins_node_wrapper.sh
View file @
ee995b43
...
...
@@ -60,8 +60,20 @@ shift
if
[[
"
$*
"
=
"/bin/true"
]]
;
then
exec
/bin/true
;
croak
"Exec failed"
;
elif
[
"
$1
"
=
scp
]
&&
[
"
$2
"
=
-f
]
;
then
elif
[
"
$1
"
=
scp
]
;
then
case
"$#"
in
3
)
if
[
"
$2
"
=
-f
]
;
then
exec
scp
-f
"
$3
"
;
croak
"Exec failed"
;
fi
;;
4
)
if
[
"
$2
"
=
-p
]
&&
[
"
$3
"
=
-f
]
;
then
exec
scp
-p
-f
"
$4
"
;
croak
"Exec failed"
;
fi
;;
esac
croak
"Unknown scp command:
$# $*
"
elif
[[
"
$*
"
=
'rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX)'
]]
;
then
exec rm
-v
$(
mktemp
--tmpdir
=
/tmp read-only-fs-test-XXXXXX
)
;
croak
"Exec failed"
;
elif
[[
"
$*
"
=
"cleanup_nodes /srv/jenkins/bin/reproducible_slay.sh"
]]
;
then
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment