Created
October 22, 2021 11:03
-
-
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]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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