Set up content for Jenkins editable email notification

I use Editable Email Notification to send email after completing a slave job with console output and test results as an email body.

I also need to add a direct link to the folder where the assembly was built by email, is there an easy way to do this? maybe some token? I did not find any tips on how to get a direct link to the assembly folder to display its location in the letter.

+7
jenkins
source share
2 answers

First click the question mark ? next to the Link to the content token , this will tell you everything you need.

Which "folder where the assembly was built" do you mean? Workspace or assembly archive?

For workspace: ${PROJECT_URL}/ws/
For the archive: ${BUILD_URL}/artifact/

+9
source share

Create output: $ {BUILD_LOG, maxLines = 1000}

For tests, you can use tokens as shown below:

There are tags $ {TEST_COUNTS, var = "total"}, of which the test failure $ {TEST_COUNTS, var = "fail"} failed.

$ {FAILED_TESTS} . Displays unit test error information if any tests fail.

For a full reference to content tokens and arguments, click the help icon.

enter image description here

+7
source share

All Articles