Skip to content

Commit fd6b16d

Browse files
committed
ci: fix email for Nightly
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent 0f56a59 commit fd6b16d

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)