[Git][qa/jenkins.debian.net][master] reproducible Debian: allow to re-run the pool_buildinfos script to be re-run for a specifc year

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Nov 1 16:46:31 GMT 2023



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
e0a92972 by Holger Levsen at 2023-11-01T17:46:07+01:00
reproducible Debian: allow to re-run the pool_buildinfos script to be re-run for a specifc year

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_pool_buildinfos.sh


Changes:

=====================================
bin/reproducible_pool_buildinfos.sh
=====================================
@@ -133,14 +133,19 @@ do_day(){
 	cd ..
 }
 
+# this takes a long time and is not run by the jenkins job but manually
+loop_through_year(){
+	for MONTH in $(seq -w 01 12) ; do
+		for DAY in $(seq -w 01 31) ; do
+			do_day
+		done
+	done
+}
+
 # this takes a long time and is not run by the jenkins job but manually
 loop_through_all(){
 	for YEAR in $(seq 2016 $(date -u +%Y)) ; do
-		for MONTH in $(seq -w 01 12) ; do
-			for DAY in $(seq -w 01 31) ; do
-				do_day
-			done
-		done
+		loop_through_year
 	done
 }
 
@@ -199,9 +204,12 @@ exit_clean() {
 # main
 #
 
-if [ -n "$1" ] && [ -z "$2" ] ; then
+if [ "$1" = "all" ] && [ -z "$2" ] ; then
 	# only run manually: do all days
 	loop_through_all
+elif [ -n "$1" ] && [ -z "$2" ] ; then
+	YEAR=$1
+	loop_through_year
 elif [ -n "$1" ] && [ -n "$2" ] && [ -n "$3" ] ; then
 	# only run manually: do a specific day only
 	YEAR=$1



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/e0a92972d3b10e146c59357d994bb599e68c8225
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/20231101/c12790b5/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list