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
Stefan Melmuk
jenkins.debian.net
Commits
c8019e07
Commit
c8019e07
authored
Sep 30, 2020
by
Holger Levsen
Browse files
reproducible trbo monitor: only having 6-10 jobs running is fine
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
cc83f9bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/jenkins-shell-monitor.sh
View file @
c8019e07
...
...
@@ -44,7 +44,7 @@ main_loop() {
JOBS_RUNNING_TOTAL
=
$(
grep
'_ /bin/bash /srv/jenkins/bin/'
$PSFAX
| egrep
-v
'reproducible_worker.sh|reproducible_build.sh|jenkins-shell-monitor.sh|reproducible_build_archlinux_pkg.sh'
|
wc
-l
)
if
[
$JOBS_RUNNING_TOTAL
-eq
0
]
;
then
JOBS_RUNNING_TOTAL
=
"
${
RED
}
$JOBS_RUNNING_TOTAL
${
FOREGROUND_COLOR
}
"
elif
[
$JOBS_RUNNING_TOTAL
-lt
10
]
;
then
elif
[
$JOBS_RUNNING_TOTAL
-lt
5
]
;
then
JOBS_RUNNING_TOTAL
=
"
${
YELLOW
}
$JOBS_RUNNING_TOTAL
${
FOREGROUND_COLOR
}
"
fi
JOBS_RUNNING_LOCAL
=
$(
grep
'_ /bin/bash /srv/jenkins/bin/'
$PSFAX
| egrep
-v
'reproducible_worker.sh|reproducible_build.sh|jenkins-shell-monitor.sh|reproducible_build_archlinux_pkg.sh|jenkins_master_wrapper.sh'
|
wc
-l
)
...
...
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