Jenkins CI Server - Ext-Email Plugin - Jelly Script Template inserting email content from text file

Associate
Joined
23 Apr 2008
Posts
232
Hi,

Im hoping someone has had experience with this.. long shot maybe but here goes :)

Im using the Jenkins CI server with the ext-email plugin and already have a nice jelly script email template that gets sent to other devs detailing svn changes unit test results, code coverage etc.

I need the template to looks for a file on the build servers file system (this file contains simple html text and is produced by an application that talks to our User Story tracking software - rally) and if it exists, add the text contained within to the the email.

i have tried this:

Code:
       <u:file var="f" name="C:\Tools\Jenkins2Rally\errors.txt"/>
		 <j:if test="${f.exists()}">
		   <TD class="bg1">Exists!!!!</TD>
	         </j:if>

But i get java exceptions with the ext email plugin saying it cant parse the jelly:util namespace. so i guess that isn't compiled in with the ext email plugin?

I cant seem to find if what im trying is even possible to do :(

I'm thinking i might have to convert the entire template to a groovy script :(

Any help would be awesome!
 
Can't you use the environment variable creation plugin and use a bash script to read data into a new environment variable that you pass into the template?

We have had to do that for several of our builds for things like release notes etc.
 
Back
Top Bottom