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
12789023
Commit
12789023
authored
10 months ago
by
Holger Levsen
Browse files
Options
Downloads
Patches
Plain Diff
reproducible Debian: adopt cleanup_nodes.sh to the new way of running r-b build services
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
33d7eca1
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_cleanup_nodes.sh
+7
-3
7 additions, 3 deletions
bin/reproducible_cleanup_nodes.sh
with
7 additions
and
3 deletions
bin/reproducible_cleanup_nodes.sh
+
7
−
3
View file @
12789023
#!/bin/bash
# Copyright © 2015-20
17
Holger Levsen <holger@layer-acht.org>
# Copyright © 2015-20
24
Holger Levsen <holger@layer-acht.org>
# released under the GPLv2
DEBUG
=
false
...
...
@@ -20,8 +20,12 @@ elif [ "$(whoami)" != "jenkins" ] ; then
fi
# deny running this if build service is still running
SERVICE
=
"reproducible_build.service"
RESULT
=
$(
systemctl show
$SERVICE
|grep ^ActiveState
=
active||true
)
if
[
-z
"
${
XDG_RUNTIME_DIR
:-}
"
]
;
then
XDG_RUNTIME_DIR
=
"/run/user/
$UID
"
export
XDG_RUNTIME_DIR
fi
SERVICE
=
'reproducible_build@*.service'
RESULT
=
$(
systemctl
--user
-M
jenkins@ show
$SERVICE
|grep ^ActiveState
=
active||true
)
if
[
-n
"
$RESULT
"
]
;
then
echo
"
$SERVICE
is still running, aborting."
exit
1
...
...
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