azure-devops

Azure DevOps REST API to create a release definition

人走茶凉 提交于 2021-02-11 16:51:29
问题 I'm trying to create a release definition by using Azure DevOps REST API. I've created a json file which has configuration details for the request. I'm getting the below error, while creating the release definition. { "$id": "1", "innerException": null, "message": "Workflow of deploy job 'Run on the agent' in release pipeline stage 'development' is invalid. Add valid tasks and try again.", "typeName": "Microsoft.VisualStudio.Services.ReleaseManagement.Data.Exceptions.InvalidRequestException,

How do you revoke someone else's PAT?

最后都变了- 提交于 2021-02-11 16:40:18
问题 If I am the Project Collection Administrator in dev.azure.com for a particular organization, then how do I revoke someone else's Personal Access Token? 回答1: how do I revoke someone else's Personal Access Token? This is acutually provided in MSDN documentation Revoke personal access tokens for organization users. If you are the PCA of your organization, please follow the doc Revoke PATs to revoke PATs for your organization users. Use the Token Revocations or the PowerShell script provided to

VS403091: You specified a state xxx that is already added

血红的双手。 提交于 2021-02-11 16:31:47
问题 I got this error while trying to create a copy of a process inherited from the Agile process on Azure Devops. I've inspected everything about the process including its WITs and their respective states but I couldn't find anything. I'll be glad if anyone who has experienced this issue can advise on a way out. The error message is not really straightforward. 回答1: This behavior seems to be a known issue and the Azure DevOps Product Group is investigating it. Follow this thread for any related

VS403091: You specified a state xxx that is already added

可紊 提交于 2021-02-11 16:28:42
问题 I got this error while trying to create a copy of a process inherited from the Agile process on Azure Devops. I've inspected everything about the process including its WITs and their respective states but I couldn't find anything. I'll be glad if anyone who has experienced this issue can advise on a way out. The error message is not really straightforward. 回答1: This behavior seems to be a known issue and the Azure DevOps Product Group is investigating it. Follow this thread for any related

TF Merge command in Powershell script task is not working

蓝咒 提交于 2021-02-11 15:56:23
问题 I am having powershell task with the following commands in my pipeline which is running using custom agent pool. $TFFile = "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe" $mergeCommand = " merge $/MyProject/dev $/MyProject/test /recursive" Start-Process "$TFFile" "$mergeCommand" $comment = "Automated merge check-in" $CheckinToTarget = " checkin $/MyProject/test /comment:$comment /recursive /noprompt"

Get the list of skipped tasks on Azure DevOps Pipeline

给你一囗甜甜゛ 提交于 2021-02-11 15:51:55
问题 Is there a way by which we can get the list of skipped tasks from the build? For example, I have 2 tasks that run conditionally only based on external factors. So how can I see, whether the tasks were skipped or actually ran from Azure DevOps REST API? I need to trigger another build conditionally based on the above factor. Any help will be appreciated! 回答1: You should look into the Build Timeline REST API. If you issue the following GET request: GET https://dev.azure.com/{organization}/

Get the list of skipped tasks on Azure DevOps Pipeline

北城以北 提交于 2021-02-11 15:49:06
问题 Is there a way by which we can get the list of skipped tasks from the build? For example, I have 2 tasks that run conditionally only based on external factors. So how can I see, whether the tasks were skipped or actually ran from Azure DevOps REST API? I need to trigger another build conditionally based on the above factor. Any help will be appreciated! 回答1: You should look into the Build Timeline REST API. If you issue the following GET request: GET https://dev.azure.com/{organization}/

Azure DevOps test -xml not found after running the Cypress tests

放肆的年华 提交于 2021-02-11 15:23:45
问题 Added a Publish test results task in Azure DevOps CI/CD pipeline, test were successfull, but after running the test it complaints about ##[warning]No test result files matching **/test-*.xml were found. Could someone please advise on how can we resolve similar problem ? Publish Test Results task : configuration Test result format= JUnit Test results files= **/test-*.xml Search folder = $(System.DefaultWorkingDirectory) Test results title = Cypress Test Results note: I have try adding the

How to pass Json variable to command line task in Azure DevOps pipeline?

僤鯓⒐⒋嵵緔 提交于 2021-02-11 15:18:13
问题 I am populating a pipeline variable in Powershell task and it is getting populated successfully: $env:RESULTJSON=$json Write-host "##vso[task.setvariable variable=testJSON]$json" However, when I try to use it to pass the value in a command line task I am not able to do so: task: CmdLine@2 env: InputJSON: $(testJSON) inputs: script: echo %INPUTJSON% 'jsonProcessor.exe $(Build.BuildID),%INPUTJSON%' workingDirectory: './jsonProcExe/' I am getting just "{" in testJSON instead of the whole JSON

How do you cache sdkmanager in AzureDevops?

空扰寡人 提交于 2021-02-11 15:11:29
问题 I do the following in my pipeline - bash: | $ANDROID_SDK_ROOT/tools/bin/sdkmanager 'ndk;20.0.5594570' >/dev/null $ANDROID_SDK_ROOT/tools/bin/sdkmanager 'ndk;21.0.6113669' >/dev/null displayName: "install NDK" Which takes about 3 minutes I was wondering if I can cache this to speed things up. However, I am not sure where it puts the files. 回答1: It seems you want to cache ndk. You may check Pipeline caching: https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure