Hello,
With Jenkins as code, I’m trying to set some default values for the “Extended E-mail Notification” plugin.
I’m using:
unclassified:
email-ext:
defaultSuffix: "@myCompany.com"
defaultContentType: "text/html"
defaultReplyTo: "mihai@myCompany-corporation.com"
“defaultSuffix” and “defaultReplyTo” are properly set, but “defaultContentType” causes the deployment to crash. I don’t know what else to try.
Please let me know if you have any suggestions.
Thank you!
poddingue
(Bruno Verachten)
May 3, 2023, 12:38pm
2
Hello @AramaMihai ,
Have you tried another value for defaultContentType
?
Here is my configuration with text/plain
:
email-ext:
adminRequiredForTemplateTesting: false
allowUnregisteredEnabled: false
charset: "UTF-8"
debugMode: false
defaultBody: |-
$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
Check console output at $BUILD_URL to view the results.
defaultContentType: "text/plain"
defaultSubject: "$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!"
defaultTriggerIds:
- "hudson.plugins.emailext.plugins.trigger.FailureTrigger"
maxAttachmentSize: -1
maxAttachmentSizeMb: -1
precedenceBulk: false
watchingEnabled: false
Is there an exception along with the crash? What version of email-ext?