azure-pipelines

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

How to get Git Tag in Azure Pipelines

隐身守侯 提交于 2020-04-09 07:50:04
问题 In Azure Pipelines, I have enabled git tags to trigger pipelines like so: trigger: branches: include: - '*' tags: include: - '*' Now I want to know if there is a way to determine programmatically: Was the pipeline started from a git commit or git tag? If the pipeline was started from a git tag, what is the tag name? 回答1: To check if the commit was from a tag, use: startsWith(variables['Build.SourceBranch'], 'refs/tags/') From James Thurley: Get the name of the tag with: $tags = git tag --sort

How to get Git Tag in Azure Pipelines

≯℡__Kan透↙ 提交于 2020-04-09 07:46:41
问题 In Azure Pipelines, I have enabled git tags to trigger pipelines like so: trigger: branches: include: - '*' tags: include: - '*' Now I want to know if there is a way to determine programmatically: Was the pipeline started from a git commit or git tag? If the pipeline was started from a git tag, what is the tag name? 回答1: To check if the commit was from a tag, use: startsWith(variables['Build.SourceBranch'], 'refs/tags/') From James Thurley: Get the name of the tag with: $tags = git tag --sort

Troubleshooting 500.31 ANCM on Azure App Service

这一生的挚爱 提交于 2020-04-07 07:09:23
问题 After upgrading a project from ASP.NET Core 3.0 to ASP.NET Core 3.1 , my application stopped working on Azure App Services —but only when published using continuous deployment from Azure DevOps Pipelines . (Similar to another question, it continues to work if I publish directly from Visual Studio.) Specifically, the pipeline is still able to publish using the Azure App Service Deploy ( AzureRmWebAppDeployment ) task, but it fails to load in the Azure App Service environment with a 500.32

Troubleshooting 500.31 ANCM on Azure App Service

╄→尐↘猪︶ㄣ 提交于 2020-04-07 07:05:52
问题 After upgrading a project from ASP.NET Core 3.0 to ASP.NET Core 3.1 , my application stopped working on Azure App Services —but only when published using continuous deployment from Azure DevOps Pipelines . (Similar to another question, it continues to work if I publish directly from Visual Studio.) Specifically, the pipeline is still able to publish using the Azure App Service Deploy ( AzureRmWebAppDeployment ) task, but it fails to load in the Azure App Service environment with a 500.32

Azure DevOps: 1 Solution Multiple Projects CI/CD

本小妞迷上赌 提交于 2020-04-05 17:50:26
问题 I just started setting Azure DevOps with CI/CD. This might not be possible but I hope to find answers. I have a solution with 6 projects: Web Api project (references Infrastructure, Repositories, and Models projects) Website project (calls the Web Api for data and references Infrastructure, Repositories, and Models projects) Node.js project (only calls the Web Api for data) Infrastructure project (shared by Web Api and Website) Repositories project (shared by Web Api and Website) Models

Azure DevOps: 1 Solution Multiple Projects CI/CD

你。 提交于 2020-04-05 17:49:56
问题 I just started setting Azure DevOps with CI/CD. This might not be possible but I hope to find answers. I have a solution with 6 projects: Web Api project (references Infrastructure, Repositories, and Models projects) Website project (calls the Web Api for data and references Infrastructure, Repositories, and Models projects) Node.js project (only calls the Web Api for data) Infrastructure project (shared by Web Api and Website) Repositories project (shared by Web Api and Website) Models

Unable to get the service connection for Azure Container Registry in Azure DevOps (Release Pipeline)

我只是一个虾纸丫 提交于 2020-03-25 19:21:05
问题 I'm trying to deploy the docker container on Azure App Service from Azure DevOps services. I've pushed the docker image to Azure Container Registry. When I try to create the release definition, I could not able to find the service connection for Azure Container Registry. I have created the service connection for ACR but it's not showing up in the list in Azure DevOps portal. When I selected 'Azure Container Repository' as the source type, the service connection is not visible in the drop down