• Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major Major
    • urltrigger-plugin
    • None
    • urltrigger-0.48

      I have a git repository where I would want to see changes on branches by certain criteria on their names.

      The JsonPath 0.5.5 does not work with regular expressions well.

      The JsonPath 2.4.0 does offer richer regular expression syntax allowing me to discover changes on revisions for multiple branches of interest.

      For the test file oldJsonContent.json you can check on https://jsonpath.herokuapp.com 

      $..[?(@.category =~ /refer.+/)].title

      should deliver
      ["Title A"]
      and the test file newJsonContent.json
      ["Sayings of the Century"]
       

          [JENKINS-59831] update JsonPath from 0.5.5 to 2.4.0

          Kemal Soysal added a comment -

          Pullrequest https://github.com/jenkinsci/urltrigger-plugin/pull/25 is implementing the desired behavior.

          Kemal Soysal added a comment - Pullrequest https://github.com/jenkinsci/urltrigger-plugin/pull/25  is implementing the desired behavior.

          Tony Noble added a comment -

          Hi Kemal,

          Thanks for the contribution.  I'll take a more in-depth look shortly, though looks generally good.  My one concern is that we now don't differentiate between a jsonPath being present and empty, and a jsonPath not being present at all.  The existing solution is probably not ideal, but I don't feel we should lose detail that was previously available (however badly presented)

           

          Tony Noble added a comment - Hi Kemal, Thanks for the contribution.  I'll take a more in-depth look shortly, though looks generally good.  My one concern is that we now don't differentiate between a jsonPath being present and empty, and a jsonPath not being present at all.  The existing solution is probably not ideal, but I don't feel we should lose detail that was previously available (however badly presented)  

          Kemal Soysal added a comment -

          it would definitely make sense to interactively show the results of the json patterns on the given url...

          Kemal Soysal added a comment - it would definitely make sense to interactively show the results of the json patterns on the given url...

            stealthdj Tony Noble
            kemalsoysal Kemal Soysal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: