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

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          Code changed in jenkins
          User: michael
          Path:
          .gitignore
          src/main/java/hudson/plugins/descriptionsetter/DescriptionSetterHelper.java
          src/main/java/hudson/plugins/descriptionsetter/DescriptionSetterPublisher.java
          http://jenkins-ci.org/commit/description-setter-plugin/3b98efa98268f225bfb33fa2cf8d75df23dce75b
          Log:
          JENKINS-26671 Multiple description setter build steps should append
          ...

          This commit fixes JENKINS-26671: Multiple description setter build
          steps
          should append to build description]
          At the same time it also fixes JENKINS-14198: Ability to append a
          description to existing description for use with flexible publish

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: michael Path: .gitignore src/main/java/hudson/plugins/descriptionsetter/DescriptionSetterHelper.java src/main/java/hudson/plugins/descriptionsetter/DescriptionSetterPublisher.java http://jenkins-ci.org/commit/description-setter-plugin/3b98efa98268f225bfb33fa2cf8d75df23dce75b Log: JENKINS-26671 Multiple description setter build steps should append ... This commit fixes JENKINS-26671 : Multiple description setter build steps should append to build description] At the same time it also fixes JENKINS-14198 : Ability to append a description to existing description for use with flexible publish

          People

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

            Dates

              Created:
              Updated: