jenkins-util/vars/setEnv.groovy

15 lines
342 B
Groovy
Raw Permalink Normal View History

2020-01-30 14:56:08 +00:00
#!/usr/bin/env groovy
2020-01-31 12:29:58 +00:00
def call() {
2020-01-31 20:02:06 +00:00
script {
if (!env.GIT_COMMITTER_EMAIL) {
env.COMMITTER_EMAIL = sh(
script: 'git --no-pager show -s --format="%ae"',
returnStdout: true
).trim()
} else {
env.COMMITTER_EMAIL = env.GIT_COMMITTER_EMAIL;
}
2020-01-30 14:56:08 +00:00
}
}