Skip to content

Commit 3c5adbe

Browse files
authored
Merge pull request #1344 from vvbandeira/fix-email-ci
ci: fix email for Nightly
2 parents d75897c + fd6b16d commit 3c5adbe

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

jenkins/public_nightly.Jenkinsfile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,8 @@ pipeline {
212212
script {
213213
try {
214214
COMMIT_AUTHOR_EMAIL = sh (returnStdout: true, script: "git --no-pager show -s --format='%ae'").trim();
215-
if ( env.BRANCH_NAME == "master" ) {
216-
echo("Main development branch: report to stakeholders and commit author.");
217-
EMAIL_TO="$COMMIT_AUTHOR_EMAIL, \$DEFAULT_RECIPIENTS";
218-
} else {
219-
echo("Feature development branch: report only to commit author.");
220-
EMAIL_TO="$COMMIT_AUTHOR_EMAIL";
221-
}
215+
echo("Nightly run: report to stakeholders and commit author.");
216+
EMAIL_TO="$COMMIT_AUTHOR_EMAIL, \$DEFAULT_RECIPIENTS";
222217
} catch (Exception e) {
223218
echo "Exception occurred: " + e.toString();
224219
EMAIL_TO="\$DEFAULT_RECIPIENTS";

0 commit comments

Comments
 (0)