Last active
October 29, 2021 14:09
-
-
Save ferventcoder/6626328 to your computer and use it in GitHub Desktop.
Jenkins Email-ext (Editable Email Notifications)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subject: Jenkins ${BUILD_STATUS} [#${BUILD_NUMBER}] - ${PROJECT_NAME} | |
Content Type: Plain Text (text/plain) | |
Trigger for matrix projects: Trigger for each configuration | |
Choose "Advanced", "Add a Trigger" and choose the following triggers: | |
Fixed, Failure, Unstable, Still Failing, Still Unstable | |
Ensure that "Send To Recipient List" is checked for all of these at the very least. | |
Fixed is the only trigger you will need to expand to change the Content. | |
See ProjectDefaultContent (below) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See ${BUILD_URL} | |
============================ | |
CHANGES (Changes that may have contributed to fixing the build) | |
============================ | |
${CHANGES_SINCE_LAST_UNSTABLE, reverse=true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See ${BUILD_URL} | |
============================ | |
CHANGES (All changes since first failure) | |
============================ | |
${CHANGES_SINCE_LAST_SUCCESS, reverse=true} | |
============================ | |
TESTS | |
============================ | |
There are ${TEST_COUNTS, var="total"} total tests of which ${TEST_COUNTS, var="fail"} test(s) failed. | |
$FAILED_TESTS | |
============================ | |
BUILD LOG (last 100 lines) | |
============================ | |
${BUILD_LOG, maxLines=100} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================ | |
ENVIRONMENT VARIABLES | |
============================ | |
${ENV} |
In editable email notification, make sure Content Type is set to HTML and add the following to the body:
${FILE,path=}
Is it possible to add an external variable e.g data written in file into the Subject?
every time i write some data into a property file present in workspace, I want to add that data into Subject, Please suggest.
Wow, this is awsome. How can I get all available variables?
Is it possible to add an external variable e.g data written in file into the Subject?
every time i write some data into a property file present in workspace, I want to add that data into Subject, Please suggest.
Hi,
Can you please share your solution? I am also trying to put an external variable in the content.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i have on html file, now i want to attach that html with email.
How can i attach that html with email.
Here i am using "editable email notification"
Kindly suggest me.
Thanks in advance