azure-devops

send multiple parameter to Azure-Devops pipeline job via Powershell

你说的曾经没有我的故事 提交于 2021-01-29 20:52:28
问题 I am able to kick off an Azure Devops Build job and send a text parameter but I only seem to be able to send a single parameter and not more. I need to send a token parameter Ok that works but I also want to send a text param that contains a json payload to be processed by a Powershell script in the Build job. So I have a Hellow World definition setup with two variables in Pipeline variables. First one is tokentext the second one is jsonInput. Both have the checkbox "Settable at queue time"

Substitute for $(SolutionDir) in Azure DevOps CI Pipeline

╄→尐↘猪︶ㄣ 提交于 2021-01-29 20:15:53
问题 I have the following situation: A SQL project in which i have a nuget package installed. This package (merely a PS script) is responsible for unpacking the DACPACs that the DB requires, using references to paths relative to the solution folder (to find the packages/ and dacpacs/ folders and to browse through the projects which it extracts from the .sln file). This is called as a pre-build event. When building the entire solution, the $(SolutionDir) is defined, as expected (locally and ADO).

How to provide docker image tag dynamically to docker-compose.yml in Azure Release Pipeline Task?

冷暖自知 提交于 2021-01-29 19:30:11
问题 I have docker-compose.yml file present in the repository. I have added the image attribute in one of the services to pull the docker images. I have not hard coded the docker image and docker tag and planning to pass these arguments at the runtime to docker-compose.yml file. How to pass the runtime arguments like IMAGE_TAG=82 , IMAGE_NAME=app1 to the docker-compose.yml file? 回答1: You can use variables in the docker-compose file for the image & tag: version: '3' services: redis-server: image: $

Run tests in parallel using the Visual Studio Test task is failing

ε祈祈猫儿з 提交于 2021-01-29 19:10:45
问题 We are trying to Run tests in parallel using the Visual Studio Test task based on below link but we noticed "Run Unit tests" step failing due to packages directory was not found. Trying to contact Azure DevOps team to get some help here. https://docs.microsoft.com/en-us/azure/devops/pipelines/test/parallel-testing-vstest?view=azure-devops 回答1: We tried to publish the test files as artifacts from the first job. And download the test artifacts to the second job. But we found the test files were

How to set a custom coverage result file path when running dotnet test --collect “Code coverage”?

好久不见. 提交于 2021-01-29 18:50:02
问题 I followed the instructions on http://tdc1tfsapp01:8080/tfs/DefaultCollection/SharpTop/_packaging?_a=package&feed=dayforce&package=OrchardCore.Cms.Web&version=1.0.20098.7+1bcd36b1f8efd5484af49f8ec39c21060a64391e&protocolType=NuGet and it does produce a binary coverage result file and surfaces a link to it on the build. But, I want to convert it to Cobertura in order to publish on the build itself. It is a rather convoluted process, where one needs to: Download the https://www.nuget.org

How to cleanly automate authentication for Azure Devops feeds?

梦想的初衷 提交于 2021-01-29 18:29:38
问题 Presumably there are lots of companies who are facing the same struggle we are. For any microservice, before running a dotnet restore we need to first ensure we've successfully configured our ADO package feeds with an active token. To achieve this we have a script which downloads and runs the CredentialProvider.VSS.exe (as suggested by Microsoft), using the output to build credentials which then register the feeds on the user's computer. This needs to happen daily as the tokens generated will

Azure DevOps: work item type rules triggered by Board Column

你离开我真会死。 提交于 2021-01-29 18:27:31
问题 I would like to do changes to my work items automatically when working in Kanban board. For example, if I drag work item type to other column (changing Board Column field value) - I want to place a tag saying it's current Board Column value. This is currently not available in Rules settings for work item types. Where is the best place to put ADO Boards enhancement requests? 回答1: Your requirement can be achieved by alternative. Generally, when you drag work item type to other column, the state

How to view the SonarQube full analysis report in the build summary in Azure DevOps?

喜夏-厌秋 提交于 2021-01-29 17:56:52
问题 Not able to view SonarQube results in the Azure DevOps build summary. I have added code coverage unit test task in the build.yml for my .netccore and framework component but when I try running the build its showing the code coverage for unit test tasks only.I am not sure how to check the full analysis including code smells and how many lines covered and quality gate result as well in the azure devops build summary itself.Due to some challenges I couldn't able to loginto my SonarQube machine

Update permissions for Azure DevOps group for EventSubscription through Azure CLI?

北战南征 提交于 2021-01-29 17:36:05
问题 I've been adding permissions to a custom Azure DevOps Services group through the Azure CLI (az devops version 0.11.0) and I've usually been able to do the following: az devops security permission namespace list , find namespaceId of specific namespace (like EventSubscription) Get the Project Admin's descriptor az devops security permission list --id $namespaceId --subject $projectAdmin.descriptor ... Find an allow bit in the ACES dictionary, find the respective token az devops security

How to really delete a commit on VSTS / Azure-devops

♀尐吖头ヾ 提交于 2021-01-29 17:12:40
问题 I'm working on VS 2017 and we have a cloud VSTS / Azure-devops. I recently committed and pushed... and realized that 8 files were not supposed to be in it. after that I committed again a clean one and pushed in to remote. Now I can see both commit in VSTS website / portail. The thing is I need to create a PULL REQUEST, and when I try to create a pull request, I found myself with the first commit file inside the pull request... which I don't want. So I just need to delete the first commit I