문제

I'm trying to use Email-ext (Version 2.27.1) with Jenkins (Version 1.508) to send an email when a build fails, to the committers who had worked on the project since the last success.

I'd like to also attach the build log to the email, and I see and check the "Attach Build Log" button, but whenever I click Save or Apply, and go back in to the configuration, the button is unchecked again. What's going on and how can I fix this?

Jenkins "Attach Build Log" Settings

도움이 되었습니까?

해결책

This was a bug in email-ext 2.27.1 and is fixed in 2.28 (Released today, if you'd believe it.)

See Version History Here

다른 팁

We are probably using a bit older version of the email-ext on our system, so it doesn't have this option available.

Alternatively you can use the following variable in addition to the default content of the message: $BUILD_LOG

This will not display the log content correctly if you are using html as content type (doesn't show new lines correctly) but it will work fine with the Text content type.

For the html you can have a customizable content using Jelly Scripts. There are some default examples that will display at least the final part of the Build Log.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top