Implement Mustache templates for messages #32

Open
wants to merge 20 commits into
from
Commits on Feb 8, 2013
  1. Add IDEA files to .gitignore

    marcins committed Feb 8, 2013
  2. Update Jenkins version and add Mustache in POM

    marcins committed Feb 8, 2013
    Updated to use Jenkins 1.500 and added the Java implementation
    of Mustache from https://github.com/spullara/mustache.java
Commits on Feb 9, 2013
  1. Use Mustache templates to generate notifications

    marcins committed Feb 9, 2013
    The plugin will now use Mustache template from configuration when
    creating HipChat notifications. This allows you to use any values
    available in the build / project configuration, including your own
    custom parameters.
  2. Update version to 0.1.3

    marcins committed Feb 9, 2013
  3. Add link to completed message

    marcins committed Feb 9, 2013
  4. Fix empty message issues

    marcins committed Feb 9, 2013
    When there is no config set there was an empty message being sent,
    instead make sure the defaults are used.
  5. Remove MessageBuilder

    marcins committed Feb 9, 2013
    MessageBuilder is no longer required since we now generate messages
    using Mustache.
  6. Make sure "Cause" is available to Mustache

    marcins committed Feb 9, 2013
    And some minor fixes to ensure there's no doubling up of "Started"
    text.
  7. Fix notifier so that is uses job properties

    marcins committed Feb 9, 2013
    Previous code was incorrectly getting message templates from
    the global notifier instead of using the JobProperties object
  8. Simplify the "started" template

    marcins committed Feb 9, 2013
    Use a single "trigger" string that's the same as the non-Mustache
    version's string instead of separate cause & changes strings which
    could cause duplications.
  9. Readme update

    marcins committed Feb 9, 2013
  10. Fix README indentation

    marcins committed Feb 9, 2013
Commits on Feb 13, 2013
  1. Update default completion msg to allow html

    marcins committed Feb 13, 2013
    If the build fails then the completion message may
    contain HTML. This means the default message needs to
    triple 'stache "status" so that the correct output is generated.
Commits on Mar 31, 2013
  1. Use StringBuilder properly in getOpenLink

    marcins committed Mar 31, 2013
    Inefficient use of concatenated strings with String builder when creating the link to the build job.
  2. Use StringUtils to check for blank strings

    marcins committed Mar 31, 2013
    Style fix to check for blank strings based on feedback.