[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] djm-logparser: derive DJM_USER from DEBFULLNAME if set

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Apr 27 23:23:07 BST 2023



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


Commits:
851ec393 by Holger Levsen at 2023-04-28T00:22:55+02:00
djm-logparser: derive DJM_USER from DEBFULLNAME if set

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

- - - - -


1 changed file:

- bin/djm-logparser


Changes:

=====================================
bin/djm-logparser
=====================================
@@ -15,8 +15,11 @@ set -o pipefail		# see eg http://petereisentraut.blogspot.com/2010/11/pipefail.h
 # define environment
 #
 if [ -z "$DJM_USER" ] ; then
-	echo "Environment variable DJM_USER must be set. Exiting."
-	exit 1
+	if [ -n "$DEBFULLNAME" ] ; then
+		DJM_USER="$(echo $DEBFULLNAME | cut -d ' ' -f1)"
+	else
+		echo "Environment variable DJM_USER must be set. Exiting."
+		exit 1
 fi
 LOCAL_LOGFILE=~/.djm.log
 UI_LOGFILE=~/.djm-jenkins-ui.log



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/851ec3933d023cce33838f92423ecec103b6af38
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/20230427/9ea416e0/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list