Skip to content
Snippets Groups Projects
Unverified Commit e2566f3a authored by poly000's avatar poly000
Browse files

todo: ability to reuse absolute id

parent 77cec8da
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,12 @@
- azure-cli (+ devops extension)
- bash
- curl
- jq
Should work on all POSIX-compatible systems (`#!/usr/bin/env`)
## TODO
- allow to specify repo_id so we needn't to query it again
- same as the above one but for build-definition-id
......@@ -37,12 +37,11 @@ function get_repo_id {
typeset -fx get_repo_id
function get_pipeline_definition_id {
az pipelines build definition list \
az pipelines build definition show \
--name "${pipeline_name}" \
--org "${org_url}" \
--proj "${proj_name}" \
--repository "${repo_name}" \
--name "${pipeline_name}" \
--query '[0].id'
--query 'id'
}
typeset -fx get_pipeline_definition_id
......@@ -105,4 +104,4 @@ export repo_id=$( get_repo_id )
# print_policy_list
setup_build_policy
setup_build_validation
setup_build_validation
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment