azure-pipelines-build-task

How to publish artifacts separately for each project in solution from VSTS CI pipeline?

感情迁移 提交于 2020-05-09 21:39:28
问题 In my solution, I have two projects (a Asp.net MVC and a Windows Service). I want to create CI/CD pipeline to deploy web application and windows service on different VMs. But to achieve this my CI pipeline should be able to publish artifacts separately for both project and then I can feed these artifacts in CD pipeline for deployment. How artifacts for all projects can be published separately in a CI pipeline ? PS: If I create two solutions each with one project only and create CI/CD pipeline

How to fail the build pipeline if “Tests Failed” in azure pipelines?

南楼画角 提交于 2020-04-10 08:13:30
问题 I want to fail the build pipeline if a single test failed with azure pipelines. Azure can successfully detect that my tests entered a failed state however it gives a success state to the entire build pipeline: The question is how to make azure give a failed build state if the tests stage failed? Here's my azure-pipelines.yml : # Build ASP.NET Core project using Azure Pipelines # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core?view=vsts pool: vmImage: 'Ubuntu 16.04'

How to fail the build pipeline if “Tests Failed” in azure pipelines?

ぐ巨炮叔叔 提交于 2020-04-10 08:10:32
问题 I want to fail the build pipeline if a single test failed with azure pipelines. Azure can successfully detect that my tests entered a failed state however it gives a success state to the entire build pipeline: The question is how to make azure give a failed build state if the tests stage failed? Here's my azure-pipelines.yml : # Build ASP.NET Core project using Azure Pipelines # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core?view=vsts pool: vmImage: 'Ubuntu 16.04'

Azure Pipelines: I am getting fatal: could not read Username for 'https://github.com': terminal prompts disabled

▼魔方 西西 提交于 2020-04-09 18:27:11
问题 I have powershell task configured in azure build pipelines to merge changes from dev into master of my github public repo and push changes to master. I am getting fatal: could not read Username for 'https://github.com': terminal prompts disabled Note: I have configured my gitconfig with my username and emailid. The git push is working fine when I do modifications in files and do commit and push but its throwing this error when i do merge and push I have sufficient privilege to push in the

Using VS2019 with TFS2018 vnext build system

╄→尐↘猪︶ㄣ 提交于 2020-03-18 05:07:25
问题 Does anybody know if it is possible to use VS2019 with TFS2018 vnext build system. You cannot select VS2019 in the build definition, but you can select "Latest" as version for Visual Studio. Unfortunately, this does not select VS2019. I have tested this in a virtual machine with VS2017 and VS2019 installed. I also upgraded TFS2018 to Azure DevOps Server 2019, which solved the problem. But this is not a "quick" solution for our production environment. Here are the logs from my tests. As you

Using VS2019 with TFS2018 vnext build system

不想你离开。 提交于 2020-03-18 05:05:09
问题 Does anybody know if it is possible to use VS2019 with TFS2018 vnext build system. You cannot select VS2019 in the build definition, but you can select "Latest" as version for Visual Studio. Unfortunately, this does not select VS2019. I have tested this in a virtual machine with VS2017 and VS2019 installed. I also upgraded TFS2018 to Azure DevOps Server 2019, which solved the problem. But this is not a "quick" solution for our production environment. Here are the logs from my tests. As you

Export tests results from Azure DevOps

心已入冬 提交于 2020-02-23 06:21:27
问题 I might be missing something, but can't find a way to export tests run results from the project's build pipeline execution page in Azure DevOps. There is a " Download logs " option, of cause, where you technically can find logs from tests execution step as well among other things, but that doesn't seems to be the best/proper way to get that kind of data on a regular basis for regulations/audit/documentation purpose compared to how it is possible to get test results from other build systems

TFS Custom Build Tasks - Multiple versions

落爺英雄遲暮 提交于 2020-02-04 22:56:59
问题 I need to make changes to a custom TFS build task. I'd like to bundle the new version of the task in my extension (leaving the current version in as well) and be able to select the version when editing a build/release definition. I've looked over Microsoft's documentation for bundling multiple versions of a build task within one extension, but I'm not seeing the details of what needs to be included in the extension manifest. I've also looked at the VSTS Tasks on github and I'm not seeing how

How do I exclude the .cs files within an artifact from a vs-team-services CI build?

谁说我不能喝 提交于 2020-01-16 04:37:08
问题 I'm new to vs-team services, right now I have a CI build setup that will have a copy publish artifact step to upload the artifact to the vsts server. And there is an option for me to filter out the Contents of the artifact, which I've put in the path relative to the root because under my repository I have multiple projects, and this build is only targeting one of them. Now my question is, the artifact is being published, but it includes everything under that path, meaning all the .cs files

NG Build fails in Azure Pipelines with NPM error 134

限于喜欢 提交于 2020-01-14 13:36:13
问题 Approx 50% of my hosted builds are failing with npm error 134. I am building the same commit with the same build definition using hosted vs2017. I am building an Angular Application using the Angular CLI. The npm task calls 'run build' which is defined as "ng build --prod" in my package.json. Both a successful build and failed build are using npm task version 1.1.49 and npm verion 6.8. This leads me to believe it is something related to the hosted environment. The hosted vs2017 and vs2019