You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ij...@apache.org on 2021/04/06 12:29:05 UTC
[kafka] branch 2.8 updated: MINOR: Jenkinsfile's `post` needs
`agent` to be set (#10479)
This is an automated email from the ASF dual-hosted git repository.
ijuma pushed a commit to branch 2.8
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/2.8 by this push:
new a95f138 MINOR: Jenkinsfile's `post` needs `agent` to be set (#10479)
a95f138 is described below
commit a95f13896a3217cce4759d9eacfd456812d4069a
Author: Ismael Juma <is...@juma.me.uk>
AuthorDate: Mon Apr 5 22:20:23 2021 -0700
MINOR: Jenkinsfile's `post` needs `agent` to be set (#10479)
The `node` block achieves that.
Tested that an email was sent to the mailing list for:
https://github.com/apache/kafka/pull/10479/commits/592a0c31d5dec5b2d33b6239f6243831b7cca361
Added back the condition not to send emails for PR builds after
such test.
Reviewers: Gwen Shapira <cs...@gmail.com>
---
Jenkinsfile | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index f9110c6..48d387e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -274,12 +274,14 @@ pipeline {
post {
always {
- script {
- if (!isChangeRequest(env)) {
- step([$class: 'Mailer',
- notifyEveryUnstableBuild: true,
- recipients: "dev@kafka.apache.org",
- sendToIndividuals: false])
+ node('ubuntu') {
+ script {
+ if (!isChangeRequest(env)) {
+ step([$class: 'Mailer',
+ notifyEveryUnstableBuild: true,
+ recipients: "dev@kafka.apache.org",
+ sendToIndividuals: false])
+ }
}
}
}