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
3d2ceb6c
Commit
3d2ceb6c
authored
4 years ago
by
Holger Levsen
Browse files
Options
Downloads
Patches
Plain Diff
jenkins shell monitor: suppress noise when showing offline nodes
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
2379525f
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/jenkins-shell-monitor.sh
+6
-1
6 additions, 1 deletion
bin/jenkins-shell-monitor.sh
with
6 additions
and
1 deletion
bin/jenkins-shell-monitor.sh
+
6
−
1
View file @
3d2ceb6c
...
...
@@ -106,7 +106,12 @@ main_loop() {
echo
"=== jenkins/trbo shell monitor ==="
echo
echo
"relevant lines from ~jenkins/offline_nodes:"
grep
-A
2342 Also ~jenkins/offline_nodes |
sed
'/^$/d'
grep
-A
2342 Also ~jenkins/offline_nodes |
tac
|
sed
-e
'/# none atm/,+1d'
|
tac
|
sed
'/^$/d'
# ^^^ this line explained:
# we grep for everything after the string 'Also" because we know the document and this will never change... m( :)
# tac is reverse cat. so doing it twice allows us to use sed backwards
# the first sed removes the matching line and the following (which due to tac is the previous one)
# the second sed command removes empty lines
echo
for
j
in
$SEQ2
;
do
echo
-n
"#"
...
...
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