[JIRA] (JENKINS-44322) email-ext sends wrong build status when called from declarative script
Title: Message Title Benjamin Kihm edited a comment on JENKINS-44322 Re: email-ext sends wrong build status when called from declarative script A rollback of Declarative plugin to v1.3.4.1. helped out. I have closed this ticket again Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-44322) email-ext sends wrong build status when called from declarative script
Title: Message Title Benjamin Kihm closed an issue as Fixed A rollback of Declarative plugin to v1.3.4.1. helped out. Jenkins / JENKINS-44322 email-ext sends wrong build status when called from declarative script Change By: Benjamin Kihm Status: Reopened Closed Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-44322) email-ext sends wrong build status when called from declarative script
Title: Message Title Benjamin Kihm commented on JENKINS-44322 Re: email-ext sends wrong build status when called from declarative script Devin Nusbaum: Thank you for the hint. This would explain why a rollback to previous versions (Token Macro 2.6 and Email Extension 2.63) do not helped out. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-44322) email-ext sends wrong build status when called from declarative script
Title: Message Title Devin Nusbaum commented on JENKINS-44322 Re: email-ext sends wrong build status when called from declarative script Benjamin Kihm Benjamin Brummer I suspect that you are running into JENKINS-56402, which is a recent problem in Pipeline: Declarative Plugin version 1.3.5 and 1.3.6 that should be fixed in the upcoming 1.3.7 release, see that issue for details if you are running those versions currently. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-44322) email-ext sends wrong build status when called from declarative script
Title: Message Title Benjamin Brummer edited a comment on JENKINS-44322 Re: email-ext sends wrong build status when called from declarative script [~bkihm], here we have the same error since with Jenkins 2.164.1 and email ext 2.65 (2.64) {code:java}/* Set email content */def subjectContent = '$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'def bodyContent = '${SCRIPT, template="groovy-html.template"}'.stage('Test') { steps { bat 'exit 1' }}...fixed { emailext( body: bodyContent, recipientProviders: [ developers(), requestor() ], subject: subjectContent )}{code}Build on Jenkins fails and is red. Email says "Test - Build # 52 - SUCCESS! Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-44322) email-ext sends wrong build status when called from declarative script
Title: Message Title Benjamin Brummer commented on JENKINS-44322 Re: email-ext sends wrong build status when called from declarative script Benjamin Kihm, here we have the same error since with Jenkins 2.164.1 and email ext 2.65 (2.64) /* Set email content */ def subjectContent = '$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!' def bodyContent = '${SCRIPT, template="groovy-html.template"}' . stage('Test') { steps { bat 'exit 1' } } ... fixed { emailext( body: bodyContent, recipientProviders: [ developers(), requestor() ], subject: subjectContent ) } Build on Jenkins fails and is red. Email says "Test - Build # 52 - SUCCESS! Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-44322) email-ext sends wrong build status when called from declarative script
Title: Message Title Benjamin Kihm reopened an issue We have the problem again with Token Macro Version 2.7 and Email Extension 2.65 on Jenkins 2.164.1. Similar to David Aldrich we use a shell script call which fails and an email block after the build stage: post { unstable { emailext to: '*@*.com, *@*.com', recipientProviders: [[$class: 'CulpritsRecipientProvider']], subject: '${DEFAULT_SUBJECT}', body: '${DEFAULT_CONTENT}' }failure { emailext to: '*@*.com, *@*.com', recipientProviders: [[$class: 'CulpritsRecipientProvider']], subject: '${DEFAULT_SUBJECT}', body: '${DEFAULT_CONTENT}' }fixed { emailext to: '*@*.com, *@*.com', recipientProviders: [[$class: 'CulpritsRecipientProvider']], subject: '${DEFAULT_SUBJECT}', body: '${DEFAULT_CONTENT}' } } In the Email subject we got ***-service » branchName - Build # 4 - SUCCESS instead of ***-service » branchName - Build # 4 - Failure Our setting for the default email subject is $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS! Jenkins / JENKINS-44322 email-ext sends wrong build status when called from declarative script Change By: Benjamin Kihm Resolution: Fixed Status: Resolved Reopened