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

jira-trigger-plugin ignores JQL filter and changelog matcher.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • jira-trigger-plugin
    • None
    • Jenkins 2.235.3
      JIRA Trigger Plugin 1.0.0

      I've setup Jira to send webhooks on each update of an issue in a project so JQL query looks like this:

      project = my_project 

      So I get webhooks that looks like this:

       {
         "timestamp":1598543835166,
         "webhookEvent":"jira:issue_updated",
         "issue_event_type_name":"issue_updated",
         "user":{
            <removed>
         },
         "issue":{
            <removed>
         },
         "changelog":{
            "id":"271762",
            "items":[
               {
                  "field":"description",
                  "fieldtype":"jira",
                  "from":null,
                  "fromString":" dfvdf dfvdf dfvdf dfvdf dfv dfv  dfv dfvd dfv dfvdf ddfdfv dfvdf dfdfvdfvdfChanged. Description of the test release.jnkjndfvdf dfvdf dfvdfdfvddfv\r\ndfvdf",
                  "to":null,
                  "toString":" dfvdf dfvdf dfvdf dfvdf dfv dfv  dfv dfvd dfv dfvdf ddfdfv dfvdf dfdfvdfvdfChanged. Description of the test release.jnkjndfvdf dfvdf dfvdfdfvddfv\r\ndfvdf\r\ndfvdf"
               }
            ]
         }
      }

      And with JQL filter set like this in Jenkins Trigger plugin

      status changed from "Merge Conflicts" to "In progress" after -1m 

      or

      status changed from "Merge Conflicts" to "In progress" 

      or

      status changed 

      I still get my job triggered.

      The same happens if I set up changlog matcher fields "status" with the same values. It's seems like Jenkins ignores any filters set and fires the job every time it receives the webhook.

      What could be wrong here?

            ceilfors Wisen Tanasa
            speranskiy Denis Speranskiy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: