Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
261 views
in Technique[技术] by (71.8m points)

Azure DevOps Release Task SQL table - looking for all servers we copy to

We have azure devops 2019 1.1. I am needing to find a way to identify the servers we copy to across all projects in all releases. Most of the time we just use the copy file task and do something like copy to servenameinetputsite. Is there a table I can look at and see all the tasks in all releases and grab that data?

question from:https://stackoverflow.com/questions/66047929/azure-devops-release-task-sql-table-looking-for-all-servers-we-copy-to

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I am afraid that currently there is no such tables with this feature as this is a custom requirement.

As a workaround, if you directly use the specific value as the target folder for the Copy Files task, you could use this Rest API: Definitions - List to list all release definitions and use Rest API: Definitions - Get get single release definition details. And then search the Copy Files task, whose task id is 5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c. And then find the value of TargetFolder argument.

If you use variable as the target folder, you will have to further use Rest API: Releases - List to get a list of releases for single release definition. And then use Rest API: Releases - Get Release to get single release details. And then search the Copy Files task via its task id. And then find the value of TargetFolder argument.

I have to say that this workaround takes lots of work, it is not easier than manually check the releases via web portal.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...