How to attach WAR file in email from jenkins

Posted by birdy on Programmers See other posts from Programmers or by birdy
Published on 2013-11-12T15:57:53Z Indexed on 2013/11/12 15:59 UTC
Read the original article Hit count: 378

We have a case where a developer needs to access the last successfully built WAR file from jenkins. However, they can't access the jenkins server.

I'd like to configure jenkins such that on every successful build, jenkins sends the WAR file to this user.

I've installed the ext-email plugin and it seems to be working fine. Emails are being received along with the build.log. However, the WAR file isn't being received.

The WAR file lives on this path in the server:

/var/lib/jenkins/workspace/Ourproject/dist/our.war

So I configured it under Post build actions like this:

enter image description here

The problem is that emails are sent but the WAR file isn't being attached.

Do I need to do something else?

© Programmers or respective owner

Related posts about continuous-integration

Related posts about email