Code fixes

This commit is contained in:
Juan Ferrer 2020-01-31 20:59:45 +01:00
parent fb5d00a4c8
commit bf6faf1bda
2 changed files with 16 additions and 20 deletions

View File

@ -1,7 +1,6 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
def call() { def call() {
script {
if (!env.GIT_COMMITTER_EMAIL) { if (!env.GIT_COMMITTER_EMAIL) {
env.COMMITTER_EMAIL = sh( env.COMMITTER_EMAIL = sh(
script: 'git --no-pager show -s --format="%ae"', script: 'git --no-pager show -s --format="%ae"',
@ -10,5 +9,4 @@ def call() {
} else { } else {
env.COMMITTER_EMAIL = env.GIT_COMMITTER_EMAIL; env.COMMITTER_EMAIL = env.GIT_COMMITTER_EMAIL;
} }
}
} }

View File

@ -1,7 +1,6 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
def call() { def call() {
script {
if (!env.COMMITTER_EMAIL) return if (!env.COMMITTER_EMAIL) return
try { try {
mail( mail(
@ -12,7 +11,6 @@ def call() {
} catch (e) { } catch (e) {
echo e.toString() echo e.toString()
} }
}
sh 'printenv' sh 'printenv'
} }