Parse build_url attribute from the JSON response

Let's save this response into a new file we call circleci-jobs-example-follow.json by using the cat utility in a Terminal shell session, like this:

cat > circleci-jobs-example-follow.json# Paste the JSON Content from System Clipboard# Press Enter# Finally Press enter

Now let's use the jq (https://stedolan.github.io/jq/manual/) and find the build_url attribute in the JSON payload:

cat circleci-jobs-example-follow.json | jq '.first_build.build_url'

This command returns the following build URL: https://circleci.com/gh/packtci/circleci-jobs-example/1.

Now you can either open a browser and paste this URL in or you can use a command-line utility available on your operating system. We will use the ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.