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

Jenkins git-plugin not parsing HTML in build reason

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When GitLab sends a push notification to Jenkins via gitlab-hook's endpoint: /gitlab/build_now, the build cause message (e.g. "Started by user so and so, Started by GitHub push by so and so, Started by timer", etc...) is set in HTML by gitlab-hook. I had an issue over there, but they told me to make one here as it is Jenkins job to parse this HTML and not theirs.

      This is what I see in plain text when a build runs via GitLab hook:

      "Started by remote host git.redacted.com with note: <br/><br/>triggered by push on branch refs/heads/redacted<br/>with 1 commits:<br/>* <a href="redacted">Redacted</a>"

      Instead of what should be seen (view attachment for what should be displayed or click here: https://cloud.githubusercontent.com/assets/674883/3699700/75ddbb34-13d7-11e4-99a2-483bc77e3ee4.png)

      Thanks.

        Attachments

          Activity

          Hide
          arnom Arno Moonen added a comment - - edited

          I am seeing this on our build servers as well. It would be nice to have this fixed!

          We are running Jenkins 1.580.2 with the latest plugins available.

          Show
          arnom Arno Moonen added a comment - - edited I am seeing this on our build servers as well. It would be nice to have this fixed! We are running Jenkins 1.580.2 with the latest plugins available.
          Hide
          javiplx Javier Palacios added a comment -

          This is solved in the new version nearly ready for release. It reduces the cause to a single line, which become a plain string.
          You can download current snapshot, although I expect to release it in the next two weeks.

          Show
          javiplx Javier Palacios added a comment - This is solved in the new version nearly ready for release. It reduces the cause to a single line, which become a plain string. You can download current snapshot , although I expect to release it in the next two weeks.

            People

            • Assignee:
              javiplx Javier Palacios
              Reporter:
              jakea Jake Andersen
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: