Improve getting of author email
@@ -118,6 +118,11 @@ pipeline {
}
steps {
installRpms()
+ script {
+ if ( AUTHOR_NAME == 'null' ) {
+ AUTHOR_NAME = sh(script: "git show -s --pretty=%ae | awk -F'@' '{print \$1}'", , returnStdout: true).trim()
+ }
+ }
sh '''
if [ ! -d $HOME/google-cloud-sdk/bin ]; then
rm -rf $HOME/google-cloud-sdk
