Jenkinsfile fixes
This commit is contained in:
parent
69f822df70
commit
aa74f8ce6a
|
@ -13,6 +13,10 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
env.COMPOSE_PROJECT_NAME = env.JOB_NAME.replace('/', '-');
|
||||
env.GIT_COMMITTER_EMAIL = sh(
|
||||
script: "git --no-pager show -s --format='%ae'",
|
||||
returnStdout: true
|
||||
).trim()
|
||||
|
||||
switch (env.BRANCH_NAME) {
|
||||
case 'master':
|
||||
|
@ -34,14 +38,6 @@ pipeline {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
checkout scm
|
||||
script {
|
||||
env.GIT_COMMITTER_EMAIL = sh(
|
||||
script: "git --no-pager show -s --format='%ae'",
|
||||
returnStdout: true
|
||||
).trim()
|
||||
}
|
||||
echo "Committer: ${env.GIT_COMMITTER_EMAIL}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue