How do I format jenkins build server emails so that the content is not all on the same line? -


i have used hudson in past , happy it. seemed work well.

i installed jenkins , set editable email plug in.

jenkins version: 1.513 email-ext plugin version: 2.28

unfortunately when try add other tokens/over ride default email appends tokens same line.

this confusing. have email set html.

any hints on how format nicer?

the default email sent (not editable one) works ok, more useful information.

unfortunately format of email makes close useless.

here editable content:

$build_tag  $build_id  $svn_revision  $changes  $cause  $default_content  $warnings_new  $warnings_count 

here email received:

jenkins-dotnet-43 2013-05-13_16-09-40 7481 [kevin] -help layout started scm change dotnet - build # 43 - successful: check console output @ http://[buildserver]:8080/job/dotnet/43/ view results. [kevin] -help layout started scm change [...truncated 142 lines...] copyfilestooutputdirectory: copying file "obj\release\model.wpf.dll" "bin\release\model.wpf.dll". model.wpf -> c:\jenkins.jenkins\jobs\dotnet\workspace\dotnet\messenger\model\model.generic\bin\release\model.wpf.dll copying file "obj\release\model.wpf.pdb" "bin\release\model.wpf.pdb". done building project "c:\jenkins.jenkins\jobs\dotnet\workspace\dotnet\messenger\model\model.ge

edit

note: when put in "< br >" entries between items separated linefeeds in email. unfortunately though within tokens (like change list) no line separators - example multiple commits listed on 1 line.

the content there, difficult decipher. seems there bug in mail plugin or other related system.

you noticed need use html line breaks between tokens don't show on same line, i'll answer part multiple change log entries on same line.

from content token reference, bold emphasis mine:

${changes, showpaths, showdependencies, format, pathformat} displays changes since last build.

  • showdependencies - if true, changes projects build depends on shown.

    defaults false.

  • showpaths - if true, paths modified commit shown.

    defaults false.

  • format - each commit listed, string containing %x, %x 1 of %a author, %d date, %m message, %p paths, or %r revision. not revision systems support %d , %r. if specified, showpaths ignored.

    defaults "[%a] %m\n".

  • pathformat - string containing %p indicate how print paths.

    defaults "\t%p\n".

the unparameterized ${changes} token set display in plain text email. need configure displays in html environment.

example: <ul>${changes, format="<li>[%a] %m</li>"}</ul>


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -