There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

JSON::ReadPath - In Jenkins grep payload json data and assign to an environment variable.

USAGE

Let's say Bitbucket pushed a payload '{"commits":{ "branch": "FooBar" }}'

And we want to grab the branch name from the payload.

BRANCH=$(read_json.pl --env payload --path commits.branch)