Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14198

Ability to append a description to existing description for use with flexible publish

XMLWordPrintable

      There is currently no way to create a multi line description based on multiple regex. The "Flexible publish" plugin gives me the possibility to call the description-setter plugin multiple times, but the last description-setter overwrites the result of the one before.

      Therefore I added two checkboxes in the job configuration page for the plugin: One that says "Append description to existing description", which then calls build.getDescription() and prepends it to the current description.
      The second checkbox "Append in a new line" is self explanatory and adds a "<br />" between the existing description and the current description.

      I've also added the helppages, but I'm not sure if this is the right way to specify a help file for an optionalBlock element:
      <f:optionalBlock ... help="${descriptor.getDescriptorFullUrl()}/help/setAppend">

      but it actually works.

      I would appreciate if you would merge my branch, because I think other people would need that feature as well.

        1. job-configuration.gif
          26 kB
          Florin Hillebrand
        2. result.gif
          9 kB
          Florin Hillebrand

            huybrechts huybrechts
            flozzone Florin Hillebrand
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: