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

Enable custom description based on regexp

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Platform: All, OS: All

      Currently the description setter can find something in log and set in the
      description as is. It would be good to have possibility to set any description
      based on regexp.

      For example: I have such entry in my log:

      Acquired new hash: e433be8d423a52c81a3362414abf5812

      I use the following regexp to show hash as a description:

      Acquired new hash: ([0-9a-f]+)

      But what I actually would like to set in description is:

      <a href="http://server/get_hash_detail/?hash=

      {0}" target="_blank">{0}

      </a>

      with

      {0}

      (or \1 or any other symbol) replaced by the matching group. Of course
      it would be good to be able to use also other matching groups in terms of

      {1}

      ,

      {2}

      , ... (or \2, \3, ...)

            huybrechts huybrechts
            raspy Krzysztof Malinowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: