[Git][qa/jenkins.debian.net][master] fixup path

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Sat Mar 9 17:11:26 GMT 2024



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
8beb7fda by Mattia Rizzolo at 2024-03-09T18:11:05+01:00
fixup path

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


4 changed files:

- TODO
- bin/reproducible_build_service.sh
- bin/reproducible_cleanup_nodes.sh
- bin/reproducible_worker.sh


Changes:

=====================================
TODO
=====================================
@@ -61,7 +61,8 @@ See link:https://jenkins.debian.net/userContent/about.html["about jenkins.debian
 ** action: ao / all-online / mark all online
 ** action: sb|top-builds: 1st stop build service, 2nd stop builds on all nodes
 *** only on jenkins
-*** as root: service reproducible_build at startup stop
+*** sudo systemctl stop reproducible_build.service
+*** sudo systemctl --user -M jenkins@ stop 'reproducible_build@*.service'
 *** as jenkins: /srv/jenkins/bin/reproducible_cleanup_nodes.sh (twice)
 ** write documentation for djm
 ** also log an id, so that one command effecting several hosts is counted as on action


=====================================
bin/reproducible_build_service.sh
=====================================
@@ -38,7 +38,7 @@ startup_workers() {
 
 
 			# shellcheck disable=SC2143
-			if [ -z "$(grep "$WORKER_NAME " reproducible_build_workers|grep -v '^#')" ]; then
+			if [ -z "$(grep "$WORKER_NAME " /srv/jenkins/bin/reproducible_build_workers|grep -v '^#')" ]; then
 				continue
 			fi
 


=====================================
bin/reproducible_cleanup_nodes.sh
=====================================
@@ -20,7 +20,7 @@ elif [ "$(whoami)" != "jenkins" ] ; then
 fi
 
 # deny running this if build service is still running
-SERVICE="reproducible_build at startup.service"
+SERVICE="reproducible_build.service"
 RESULT=$(systemctl show $SERVICE|grep  ^ActiveState=active||true)
 if [ -n "$RESULT" ] ; then
 	echo "$SERVICE is still running, aborting."


=====================================
bin/reproducible_worker.sh
=====================================
@@ -28,7 +28,7 @@ common_init "$@"
 # this function defines which builds take place on which nodes
 #
 choose_nodes() {
-	line=$(grep "$1 " reproducible_build_workers|grep -v '^#')
+	line=$(grep "$1 " /srv/jenkins/bin/reproducible_build_workers|grep -v '^#')
 	if [ -n "$line" ]; then
 		NODE1=$(echo "$line"|awk '{print $2}')
 		NODE2=$(echo "$line"|awk '{print $3}')



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8beb7fdaafda3a0aa86bd5224430c9f443e2c670

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8beb7fdaafda3a0aa86bd5224430c9f443e2c670
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20240309/119f1636/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list