Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring Content for Editable Email Notification Jenkins

Tags:

jenkins

I am using Editable E-mail notification to send email after a slave job is finished with the console output and test results as the email body.

I also need to add to the email direct link to the folder where build was actually built, is there an easy way to do this? maybe some kind of token? I didn't find any clues on how to get direct link to the build folder to display it location in the email.

like image 402
Alex Avatar asked Dec 15 '14 21:12

Alex


2 Answers

First, click the question mark ? next to Content Token Reference, this will tell you all you need.

What "folder where build was actually built" are you referring to? The Workspace, or the build Archive?

For Workspace: ${PROJECT_URL}/ws/
For Archive: ${BUILD_URL}/artifact/

like image 189
Slav Avatar answered Nov 20 '22 22:11

Slav


Build output: ${BUILD_LOG, maxLines=1000}

For tests you can use the tokens as below:

There are ${TEST_COUNTS, var="total"} total tests of which ${TEST_COUNTS, var="fail"} test(s) failed.

${FAILED_TESTS} - Displays failing unit test information, if any tests failed.

For complete reference to Content token and arguments, click on help icon.

enter image description here

like image 28
Devesh Avatar answered Nov 20 '22 22:11

Devesh