Giter Site home page Giter Site logo

ado-wrapper's Introduction

Ado Wrapper

This is a Python Package which works as an interface to the Azure DevOps API

It is essentially a wrapper for the (horrible to work with) ADO API, and supports OOP principals.

Any resource can be fetched by calling the <resource>.get_by_id() function.

It also includes a solution for managing resources created by this script, which is extremely useful for testing the creation of random resources. To delete all resources created by this, run the main module with the "--delete-everything" flag.

If you're reading this readme not from the code, here's a link to the github repo

ado-wrapper's People

Contributors

up929312 avatar annecy169 avatar

Watchers

 avatar

Forkers

annecy169

ado-wrapper's Issues

Adding Stage management to Runs

Within ADO you have the ability to trigger a run while excluding certain stages.
image
However with this functionality in the API the listing of the stages is an unsupported API endpoint POST https://dev.azure.com/${ORG_NAME}/_apis/Contribution/HierarchyQuery/project/${PROJECT_ID}
PAYLOAD:
{"contributionIds":["ms.vss-build-web.pipeline-run-parameters-data-provider"],"dataProviderContext":{"properties":{"pipelineId":${PIPELINE_ID},"sourceBranch":"refs/heads/${BRANCH}","sourceVersion":"","onlyFetchTemplateParameters":false,"templateParameters":${TEMPLATE PARAMETER},"sourcePage":{"url":"https://dev.azure.com/${ORG_NAME}/${PROJECT_NAME}/_build?definitionId=${PIPELINE_ID}&_a=summary","routeId":"ms.vss-build-web.pipeline-details-route","routeValues":{"project":"${PROJECT_NAME}","viewname":"details","controller":"ContributedPage","action":"Execute","serviceHost":"${ORG_ID} (${ORG_NAME})"}}}}}

Then output of this will be in dataProviders.ms.vss-build-web.pipeline-run-parameters-data-provider.stages.
This should then be extrapolated by an input to the function of stages to run in order to get the list of stages to skip.
Then when creating the run you need to pass in the payload of stages to skip stagesToSkip: ["build",]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.