Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webhook-task): replace deprecated method for json parsing #3026

Merged
merged 2 commits into from
Jul 8, 2019

Conversation

gomid
Copy link
Contributor

@gomid gomid commented Jul 8, 2019

After cadence 1.14, kork introduce json-path 2.4.0 as dependency and the JsonContext().parse method is deprecated.
As a result, webhook stage fails to bind expected artifacts.
Issue: spinnaker/spinnaker#4599

This PR is for replacing the method with a static parse method which works for both json-path 2.4.0 and 2.2.0

reference:
https://static.javadoc.io/com.jayway.jsonpath/json-path/2.4.0/com/jayway/jsonpath/internal/JsonContext.html
https://static.javadoc.io/com.jayway.jsonpath/json-path/2.2.0/com/jayway/jsonpath/internal/JsonContext.html

Copy link
Contributor

@marchello2000 marchello2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants