Skip to content

Instantly share code, notes, and snippets.

@kiwimato
Created October 22, 2021 11:03
Show Gist options
  • Save kiwimato/b3b125847f6376e4b664bcc5637e9f89 to your computer and use it in GitHub Desktop.
Save kiwimato/b3b125847f6376e4b664bcc5637e9f89 to your computer and use it in GitHub Desktop.
Extract pipeline names and links from Azure DevOps api response with jq and outputs in Jira format [pipeline name|https://link]
cat response.json | jq -r '.value[] | select(.name | contains ("project") and contains("master") and (contains("test")|not)) | "[\(.name)|\(._links.web.href)]"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment