summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-05 13:19:50 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-05 13:19:50 +0200
commitf138af6494ab94ad1417a39976948287c1a4155c (patch)
treeaaa869f31abb708daf6267baa739bf19c86d0448
parent299e6d58a5d8acdc57ff2ff2725a9936bb27d168 (diff)
downloadjenkins.debian.net-f138af6494ab94ad1417a39976948287c1a4155c.tar.xz
reproducible: use pgrep, less pipes
-rwxr-xr-xhosts/bpi0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds4
-rwxr-xr-xhosts/cbxi4pro0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds4
-rwxr-xr-xhosts/hb0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds4
-rwxr-xr-xhosts/profitbricks-build1-amd64/etc/munin/plugins/jenkins_reproducible_builds4
-rwxr-xr-xhosts/profitbricks-build2-amd64/etc/munin/plugins/jenkins_reproducible_builds4
-rwxr-xr-xhosts/wbq0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds4
6 files changed, 12 insertions, 12 deletions
diff --git a/hosts/bpi0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds b/hosts/bpi0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
index f59969b0..238e4304 100755
--- a/hosts/bpi0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
+++ b/hosts/bpi0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
@@ -48,9 +48,9 @@ fi
for PREFIX in $JOB_PREFIXES ; do
if [ "$PREFIX" = "first" ] ; then
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
else
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
fi
echo "jenkins_reproducible_${PREFIX}_build.value $NR"
done
diff --git a/hosts/cbxi4pro0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds b/hosts/cbxi4pro0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
index f59969b0..238e4304 100755
--- a/hosts/cbxi4pro0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
+++ b/hosts/cbxi4pro0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
@@ -48,9 +48,9 @@ fi
for PREFIX in $JOB_PREFIXES ; do
if [ "$PREFIX" = "first" ] ; then
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
else
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
fi
echo "jenkins_reproducible_${PREFIX}_build.value $NR"
done
diff --git a/hosts/hb0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds b/hosts/hb0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
index f59969b0..238e4304 100755
--- a/hosts/hb0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
+++ b/hosts/hb0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
@@ -48,9 +48,9 @@ fi
for PREFIX in $JOB_PREFIXES ; do
if [ "$PREFIX" = "first" ] ; then
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
else
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
fi
echo "jenkins_reproducible_${PREFIX}_build.value $NR"
done
diff --git a/hosts/profitbricks-build1-amd64/etc/munin/plugins/jenkins_reproducible_builds b/hosts/profitbricks-build1-amd64/etc/munin/plugins/jenkins_reproducible_builds
index f59969b0..238e4304 100755
--- a/hosts/profitbricks-build1-amd64/etc/munin/plugins/jenkins_reproducible_builds
+++ b/hosts/profitbricks-build1-amd64/etc/munin/plugins/jenkins_reproducible_builds
@@ -48,9 +48,9 @@ fi
for PREFIX in $JOB_PREFIXES ; do
if [ "$PREFIX" = "first" ] ; then
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
else
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
fi
echo "jenkins_reproducible_${PREFIX}_build.value $NR"
done
diff --git a/hosts/profitbricks-build2-amd64/etc/munin/plugins/jenkins_reproducible_builds b/hosts/profitbricks-build2-amd64/etc/munin/plugins/jenkins_reproducible_builds
index f59969b0..238e4304 100755
--- a/hosts/profitbricks-build2-amd64/etc/munin/plugins/jenkins_reproducible_builds
+++ b/hosts/profitbricks-build2-amd64/etc/munin/plugins/jenkins_reproducible_builds
@@ -48,9 +48,9 @@ fi
for PREFIX in $JOB_PREFIXES ; do
if [ "$PREFIX" = "first" ] ; then
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
else
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
fi
echo "jenkins_reproducible_${PREFIX}_build.value $NR"
done
diff --git a/hosts/wbq0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds b/hosts/wbq0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
index f59969b0..238e4304 100755
--- a/hosts/wbq0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
+++ b/hosts/wbq0-armhf-rb/etc/munin/plugins/jenkins_reproducible_builds
@@ -48,9 +48,9 @@ fi
for PREFIX in $JOB_PREFIXES ; do
if [ "$PREFIX" = "first" ] ; then
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 1")
else
- NR=$(ps fax | grep -v grep | grep -c "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
+ NR=$(pgrep -fc "bin/bash /srv/jenkins/bin/reproducible_build.sh 2")
fi
echo "jenkins_reproducible_${PREFIX}_build.value $NR"
done