azure-pipelines-release-pipeline

Move multiple Azure Devops projects into one project (same org)

╄→гoц情女王★ 提交于 2020-06-16 05:26:09
问题 I am in an enterprise that creates many large to small scale applications. Way back when I started using Visual Studio Online/VSTS/now Azure devops I broke all of these apps out into different projects. However, now it seems there is good support for managing multiple apps in one project, and this seems easier from a management standpoint. From the research I did it seems i can do each service individually: Repos : Select Import Repository from the consolidated project and enter in the URL of

Run Java Selenium tests in Azure DevOps release pipeline

纵饮孤独 提交于 2020-05-17 07:02:31
问题 I'm doing a POC for a Java project in an AzureDevops CI/CD pipeline. I created a Maven project that has Selenium tests (TestNG) that run against a demo website which is independent of my project. I want to run unit tests in the build pipeline and UI Selenium tests in the release pipeline. The Visual Studio test task seems to be the building block that I need. I think you can differentiate between unit tests & UI tests using the 'Test files' field like **\unit*Test.dll, **\ui*Test.

Install mongodb on azure devops host for testrun

喜夏-厌秋 提交于 2020-05-16 05:16:31
问题 I am trying to switch to azure devops and I need a mongodb instance running for some integration tests. The hosts, that are supplied by azure devops do not contain an installation of mongodb and I do not know where I could supply a new docker image with VS and mongodb. Is this even the way to go? Is there no way to change the docker file of the images, so they install mongodb aswell? I allready tried to add a new pool and add an image there, but this does not seem to be the right direction :/

Install mongodb on azure devops host for testrun

不羁岁月 提交于 2020-05-16 05:16:08
问题 I am trying to switch to azure devops and I need a mongodb instance running for some integration tests. The hosts, that are supplied by azure devops do not contain an installation of mongodb and I do not know where I could supply a new docker image with VS and mongodb. Is this even the way to go? Is there no way to change the docker file of the images, so they install mongodb aswell? I allready tried to add a new pool and add an image there, but this does not seem to be the right direction :/

Azure DevOps pipeline release Error: No package found with specified pattern: D:\a\r1\a\**\*.zip

こ雲淡風輕ζ 提交于 2020-05-10 07:13:16
问题 I have an ASP.NET Core project in Azure DevOps repository and it gets built OK using the DevOps build pipeline. However, the release over that builds always fails with this error: Error: No package found with specified pattern: D:\a\r1\a***.zip I've already checked out this and this Q/As, but cannot figure out the solution. Here is my azure.pipelines.yml file: pool: vmImage: 'vs2017-win2016' variables: buildConfiguration: 'Release' steps: - script: dotnet build ".\src\MyProject.sln" -

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

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

VSTS Powershell Secret Variable

末鹿安然 提交于 2020-03-22 08:55:50
问题 How can I use a secret variable in my powershell script in my release definition? I came across this but it doesn't work. The directory "$($env:AGENT_HOMEDIRECTORY)\agent\worker\Modules" doesn't exist on the new agents. What's the correct way of accessing a secret variable on new hosts? My agent version is 2.114.0. 回答1: By design, you have to pass the value of secret variable through PowerShell parameters. For example: Variable: password (secret) task: PowerShell Arguments: -pass $(password)

VSTS Powershell Secret Variable

不羁的心 提交于 2020-03-22 08:55:22
问题 How can I use a secret variable in my powershell script in my release definition? I came across this but it doesn't work. The directory "$($env:AGENT_HOMEDIRECTORY)\agent\worker\Modules" doesn't exist on the new agents. What's the correct way of accessing a secret variable on new hosts? My agent version is 2.114.0. 回答1: By design, you have to pass the value of secret variable through PowerShell parameters. For example: Variable: password (secret) task: PowerShell Arguments: -pass $(password)

Deploy database to Azure SQL fails, sp_MSforeachtable not found

社会主义新天地 提交于 2020-03-21 16:28:11
问题 I am trying to publish a SQL Server database using a .dacpac and publish profile to an Azure SQL database. We have been using on premises SQL Server with no problems for quite some time, and now we are evaluating Azure and AWS to see which is best suited for our needs. We have a SQL Server database project and want to deploy it to Azure SQL database, however it fails to execute the script generated by SSDT. This is because the generated script contains a call to the stored procedure sp