brucehaley / exportpipelinedefinitions Goto Github PK
View Code? Open in Web Editor NEWExport all Azure DevOps pipeline definitions so they can be searched globally
Export all Azure DevOps pipeline definitions so they can be searched globally
We have ADO through on-prem servers, so instead of azure.com/MyCompany our servers are like azure.mycompany.com - would it be possible to update this tool to allow for connecting to these types of servers?
I do not currently have plans to do this myself. However, if someone else wants to do it, that would be welcome. Reference: https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x
Azure DevOps UI will not import a .json file from this application to create a new pipeline definition. It would be nice if the .json file output were formatted so the UI could successfully import it.
I do not currently have plans to do this. If someone else wanted to do it, that would be great.
You've linked to this tool from https://stackoverflow.com/questions/71250584/how-to-check-if-installed-extensions-are-used-in-pipelines as being useful in auditing the contents of pipelines, especially the inclusion of extensions. There is no default functionality in Azure DevOps to indicate if an installed extension is actually in use or not ("in use" = defined in a pipeline irrespective of when/whether the pipeline was run). Thanks - it's brilliant, and works well for YAML defined pipelines.
For classic pipelines, the output in the .json files doesn't list the extension/task name, instead it refers to taskId. This means that you can't only use the extension/task name (e.g. AmazonWebServices.aws-vsts-tools
) for searching, you also need to know the TaskId and search for that...except I couldn't find an API call to link taskId and extension. However, there is an undocumented API at https://dev.azure.com/{{organization}}/_apis/distributedtask/tasks
which lists extensions/tasks e.g.
{
"value": [{
"id": "{{the taskId we're looking for}}",
"version": {},
"friendlyName": "{{friendly name}}",
"description": "{{description}}",
"contributionIdentifier": "{{dotted extension/task name e.g. AmazonWebServices.aws-vsts-tools.S3Download}}"
}]
}
This gives you a few options then for how you continue the audit/search for extensions in use in your pipeline definitions. I've not been able to compare if taskId is unique to an Azure DevOps organisation or is a parameter of the extension globally. Just wanted to share in case it's useful for adding to the Readme. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.