[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: common-functions: make instructions more geeky

Holger Levsen gitlab at salsa.debian.org
Tue May 4 00:43:53 BST 2021



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


Commits:
e2ff6e2b by Holger Levsen at 2021-05-04T01:41:40+02:00
common-functions: make instructions more geeky

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

- - - - -
eb39d28f by Holger Levsen at 2021-05-04T01:43:41+02:00
common-functions: set some more sensibel default early

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

- - - - -


1 changed file:

- bin/common-functions.sh


Changes:

=====================================
bin/common-functions.sh
=====================================
@@ -49,6 +49,10 @@ abort_if_bug_is_still_open() {
 #  anytime...)
 #
 common_init() {
+# some sensible default
+if [ "${LC_ALL+x}" != "x" ] ; then
+	export LC_ALL=C.UTF-8
+fi
 # check whether this script has been started from /tmp already
 if [ "${0:0:5}" != "/tmp/" ] ; then
 	# check that we are not root
@@ -96,7 +100,7 @@ if [ "${0:0:5}" != "/tmp/" ] ; then
 	echo "$(date -u) - running $0 (for job $WHOAREWE) on $(hostname), called using \"$@\" as arguments."
 	echo "$(date -u) - actually running \"$(basename $0)\" (md5sum $(md5sum $0|cut -d ' ' -f1)) as \"$TTT\""
 	echo
-	echo " git clone https://salsa.debian.org/qa/jenkins.debian.net.git ; more CONTRIBUTING"
+	echo "$ git clone https://salsa.debian.org/qa/jenkins.debian.net.git ; more CONTRIBUTING"
 	echo
 	# this is the "hack": call ourself as a copy in /tmp again
 	$TTT "$@"
@@ -105,10 +109,6 @@ if [ "${0:0:5}" != "/tmp/" ] ; then
 else
 	# this directory resides on tmpfs, so it might be gone after reboots...
 	mkdir -p /srv/workspace/chroots
-	# default settings used for the jenkins.debian.net environment
-	if [ "${LC_ALL+x}" != "x" ] ; then
-		export LC_ALL=C.UTF-8
-	fi
 
 	if [ "${MIRROR+x}" != "x" ] ; then
 		case $HOSTNAME in



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/2a19976860a948be20ecef183ce2586fbf22afb3...eb39d28fbf17c10d6bc91fd642844b35f1d12266

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/2a19976860a948be20ecef183ce2586fbf22afb3...eb39d28fbf17c10d6bc91fd642844b35f1d12266
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/20210503/d8cf3ac5/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list