azure-devops

Azure DevOps REST API - How are Picklists associated with Field?

六眼飞鱼酱① 提交于 2021-01-04 05:39:04
问题 I am trying to use rest to create fields and picklists, on the web site I created a field as type picklist String and added some items to the list: Rest url for field: https://dev.azure.com/{org}/_apis/work/processes/{processId}/workitemtypes/CMMI2.Bug/fields/Custom.AppType?api-version=5.0-preview.2 it is returning this: { referenceName: "Custom.AppType", name: "AppType", type: "string", description: "", url: "https://dev.azure.com/{org}/_apis/work/processes/bd96307e-3d16-44ac-b498

Get own Service Principal Name in an Azure DevOps Powershell pipeline task

╄→尐↘猪︶ㄣ 提交于 2021-01-02 15:55:37
问题 When running an Azure Powershell task in an Azure DevOps Release Pipeline with system.debug=true, you will get an output similar to this: # anonymized ... 2019-09-05T12:19:41.8983585Z ##[debug]INPUT_CONNECTEDSERVICENAMEARM: '7dd40b2a-1c37-4c0a-803e-9b0044a8b54e' 2019-09-05T12:19:41.9156487Z ##[debug]ENDPOINT_URL_7dd40b2a-1c37-4c0a-803e-9b0044a8b54e: 'https://management.azure.com/' 2019-09-05T12:19:41.9188051Z ##[debug]ENDPOINT_AUTH_7dd40b2a-1c37-4c0a-803e-9b0044a8b54e: '********' 2019-09

Get own Service Principal Name in an Azure DevOps Powershell pipeline task

感情迁移 提交于 2021-01-02 15:55:30
问题 When running an Azure Powershell task in an Azure DevOps Release Pipeline with system.debug=true, you will get an output similar to this: # anonymized ... 2019-09-05T12:19:41.8983585Z ##[debug]INPUT_CONNECTEDSERVICENAMEARM: '7dd40b2a-1c37-4c0a-803e-9b0044a8b54e' 2019-09-05T12:19:41.9156487Z ##[debug]ENDPOINT_URL_7dd40b2a-1c37-4c0a-803e-9b0044a8b54e: 'https://management.azure.com/' 2019-09-05T12:19:41.9188051Z ##[debug]ENDPOINT_AUTH_7dd40b2a-1c37-4c0a-803e-9b0044a8b54e: '********' 2019-09

Get own Service Principal Name in an Azure DevOps Powershell pipeline task

混江龙づ霸主 提交于 2021-01-02 15:54:10
问题 When running an Azure Powershell task in an Azure DevOps Release Pipeline with system.debug=true, you will get an output similar to this: # anonymized ... 2019-09-05T12:19:41.8983585Z ##[debug]INPUT_CONNECTEDSERVICENAMEARM: '7dd40b2a-1c37-4c0a-803e-9b0044a8b54e' 2019-09-05T12:19:41.9156487Z ##[debug]ENDPOINT_URL_7dd40b2a-1c37-4c0a-803e-9b0044a8b54e: 'https://management.azure.com/' 2019-09-05T12:19:41.9188051Z ##[debug]ENDPOINT_AUTH_7dd40b2a-1c37-4c0a-803e-9b0044a8b54e: '********' 2019-09

Get own Service Principal Name in an Azure DevOps Powershell pipeline task

我只是一个虾纸丫 提交于 2021-01-02 15:49:09
问题 When running an Azure Powershell task in an Azure DevOps Release Pipeline with system.debug=true, you will get an output similar to this: # anonymized ... 2019-09-05T12:19:41.8983585Z ##[debug]INPUT_CONNECTEDSERVICENAMEARM: '7dd40b2a-1c37-4c0a-803e-9b0044a8b54e' 2019-09-05T12:19:41.9156487Z ##[debug]ENDPOINT_URL_7dd40b2a-1c37-4c0a-803e-9b0044a8b54e: 'https://management.azure.com/' 2019-09-05T12:19:41.9188051Z ##[debug]ENDPOINT_AUTH_7dd40b2a-1c37-4c0a-803e-9b0044a8b54e: '********' 2019-09

Building .NET 5.0 project Azure DevOps pipeline

怎甘沉沦 提交于 2021-01-02 05:41:14
问题 I'm trying to build a project in .NET 5.0 using Azure DevOps pipeline Build and I'm received this error 2020-11-14T01:59:45.8238544Z [command]"C:\Program Files\dotnet\dotnet.exe" build D:\a\1\s\XXX.csproj "-dl:CentralLogger,\"D:\a\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.178.0\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll\"*ForwardingLogger,\"D:\a\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.178.0\dotnet-build-helpers

Download audit logs in csv from azure DevOps UI using powershell

半世苍凉 提交于 2021-01-02 04:05:01
问题 Hi I am looking for a script which can download export logs in csv from azure DevOps using powershell for given time frame. like I can enter time frame and then script will download and return csv file from azure DevOps ui - I found this script here https://developercommunity.visualstudio.com/content/problem/615053/question-we-want-to-get-the-export-audit-log-using.html I am not sure what username , password and url to use here $Username = 'domain\user' $Password = 'password' $Url = "https:/

Download audit logs in csv from azure DevOps UI using powershell

南笙酒味 提交于 2021-01-02 04:00:01
问题 Hi I am looking for a script which can download export logs in csv from azure DevOps using powershell for given time frame. like I can enter time frame and then script will download and return csv file from azure DevOps ui - I found this script here https://developercommunity.visualstudio.com/content/problem/615053/question-we-want-to-get-the-export-audit-log-using.html I am not sure what username , password and url to use here $Username = 'domain\user' $Password = 'password' $Url = "https:/

Refer to the external code in GitHub repo from ADO repo

社会主义新天地 提交于 2021-01-01 09:41:27
问题 I have 2 repositories - 1 ADO & 1 GitHub: ADO repo contains internal code GitHub repo contains external code I'm using https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops to checkout the above repositories. I need to use some code files in GitHub repo to build the code in ADO repo (meaning internal code in ADO repo has dependency to external code GitHub repo). Example <ADO repo> <ADO-code-file> <content>: private readonly IXYZ _log = null;

Add condition on stage to check the changes on folder

假如想象 提交于 2021-01-01 07:59:09
问题 I have both server side (web api using c#) and client side (angular) code in same branch. I have created separate stage for both server side and client side code to build, and one more stage to deploy. If I check in code in either of client side or server side the all the 3 stages run. To avoid this I am looking for ways to add conditions at stage level so that if there are server side changes then only Server stage will run, if the checked in code has only client side code then only Client