From 956b1e1c26aa1c7b253096af50be3400ace43e4c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 16 Oct 2023 16:31:08 +0200 Subject: [PATCH] build: Extend autobuild diagnostics by the username * m4/autobuild.m4 (AB_INIT): Add username. -- The old autobuild diagnostics show up in build logs. What they are missing is an information on the user who triggered a build. EMAIL is a common thing to denote the actual user using a service account. --- m4/autobuild.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m4/autobuild.m4 b/m4/autobuild.m4 index ceed46494..20086ae9f 100644 --- a/m4/autobuild.m4 +++ b/m4/autobuild.m4 @@ -23,6 +23,9 @@ AC_DEFUN([AB_INIT], if test "$hostname"; then AC_MSG_NOTICE([autobuild hostname... $hostname]) fi + if test "$EMAIL"; then + AC_MSG_NOTICE([autobuild username... $EMAIL]) + fi ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])]) date=`date +%Y%m%d-%H%M%S` if test "$?" != 0; then