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
Vasyl Gello
jenkins.debian.net
Commits
049f28b1
Commit
049f28b1
authored
Apr 09, 2022
by
Paul Spooren
Browse files
openwrt: add missing RUN to node_cleanup
Signed-off-by:
Paul Spooren
<
mail@aparcar.org
>
parent
3c291f1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/reproducible_openwrt.sh
View file @
049f28b1
...
@@ -42,7 +42,8 @@ node_debug() {
...
@@ -42,7 +42,8 @@ node_debug() {
# only called direct on a remote build node
# only called direct on a remote build node
node_cleanup_tmpdirs
()
{
node_cleanup_tmpdirs
()
{
export
TMPBUILDDIR
=
$1
export
RUN
=
$1
export
TMPBUILDDIR
=
$2
cd
cd
# (very simple) check we are deleting the right stuff
# (very simple) check we are deleting the right stuff
if
[
"
${
TMPBUILDDIR
:0:23
}
"
!=
"/srv/workspace/chroots/"
]
||
[
${#
TMPBUILDDIR
}
-le
23
]
;
then
if
[
"
${
TMPBUILDDIR
:0:23
}
"
!=
"/srv/workspace/chroots/"
]
||
[
${#
TMPBUILDDIR
}
-le
23
]
;
then
...
@@ -82,8 +83,8 @@ master_cleanup_tmpdirs() {
...
@@ -82,8 +83,8 @@ master_cleanup_tmpdirs() {
rsync
-av
"
$GENERIC_NODE2
:
$TMPBUILDDIR
/build_logs.tar.xz"
"
$WORKSPACE
/results/build_logs_b2.tar.xz"
||
true
rsync
-av
"
$GENERIC_NODE2
:
$TMPBUILDDIR
/build_logs.tar.xz"
"
$WORKSPACE
/results/build_logs_b2.tar.xz"
||
true
fi
fi
$SSHN1
"reproducible_openwrt"
node node_cleanup_tmpdirs
"
$TMPBUILDDIR
"
||
true
$SSHN1
"reproducible_openwrt"
node node_cleanup_tmpdirs
"b1"
"
$TMPBUILDDIR
"
||
true
$SSHN2
"reproducible_openwrt"
node node_cleanup_tmpdirs
"
$TMPBUILDDIR
"
||
true
$SSHN2
"reproducible_openwrt"
node node_cleanup_tmpdirs
"b2"
"
$TMPBUILDDIR
"
||
true
cd
cd
# (very simple) check we are deleting the right stuff
# (very simple) check we are deleting the right stuff
...
@@ -473,7 +474,7 @@ build_two_times() {
...
@@ -473,7 +474,7 @@ build_two_times() {
rsync
-av
"
$GENERIC_NODE1
:
$TMPBUILDDIR
/
$RUN
/"
"
$RESULTSDIR
/
$RUN
/"
rsync
-av
"
$GENERIC_NODE1
:
$TMPBUILDDIR
/
$RUN
/"
"
$RESULTSDIR
/
$RUN
/"
rsync
-av
"
$GENERIC_NODE1
:
$TMPBUILDDIR
/build_logs.tar.xz"
"
$WORKSPACE
/results/build_logs_b1.tar.xz"
rsync
-av
"
$GENERIC_NODE1
:
$TMPBUILDDIR
/build_logs.tar.xz"
"
$WORKSPACE
/results/build_logs_b1.tar.xz"
rsync
-av
"
$GENERIC_NODE1
:
$TMPBUILDDIR
/toolchain.html"
"
$RESULTSDIR
/toolchain.html"
rsync
-av
"
$GENERIC_NODE1
:
$TMPBUILDDIR
/toolchain.html"
"
$RESULTSDIR
/toolchain.html"
$SSHN1
"reproducible_openwrt"
node node_cleanup_tmpdirs
"
$TMPBUILDDIR
"
$SSHN1
"reproducible_openwrt"
node node_cleanup_tmpdirs
"
$RUN
"
"
$TMPBUILDDIR
"
## second run
## second run
local
RUN
=
b2
local
RUN
=
b2
...
@@ -482,7 +483,7 @@ build_two_times() {
...
@@ -482,7 +483,7 @@ build_two_times() {
# rsync back logs and images
# rsync back logs and images
rsync
-av
"
$GENERIC_NODE2
:
$TMPBUILDDIR
/
$RUN
/"
"
$RESULTSDIR
/
$RUN
/"
rsync
-av
"
$GENERIC_NODE2
:
$TMPBUILDDIR
/
$RUN
/"
"
$RESULTSDIR
/
$RUN
/"
rsync
-av
"
$GENERIC_NODE2
:
$TMPBUILDDIR
/build_logs.tar.xz"
"
$WORKSPACE
/results/build_logs_b2.tar.xz"
rsync
-av
"
$GENERIC_NODE2
:
$TMPBUILDDIR
/build_logs.tar.xz"
"
$WORKSPACE
/results/build_logs_b2.tar.xz"
$SSHN2
"reproducible_openwrt"
node node_cleanup_tmpdirs
"
$TMPBUILDDIR
"
$SSHN2
"reproducible_openwrt"
node node_cleanup_tmpdirs
"
$RUN
"
"
$TMPBUILDDIR
"
}
}
...
...
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