azure-pipelines

Deploy console webjob app to azure App service containing a webapi using azure devops pipelines

送分小仙女□ 提交于 2020-01-24 11:18:30
问题 I have 2 webAPI’s written in .net core 2.2.The 2 web api’s are triggered by web jobs which are console Apps in .netcore 2.2. They are all different projects and in different repositories in Azure DevOps. I am trying to deploy the web Api's together with the webjob into 2 web app services(eg: WebApi1 + Web job1 into App service1 and WebApi2 + Web job2 into App service2) in Azure using the Azure DevOps build and release pipelines. I am able to add the webjobs manually into App Service from

Deploy console webjob app to azure App service containing a webapi using azure devops pipelines

被刻印的时光 ゝ 提交于 2020-01-24 11:17:28
问题 I have 2 webAPI’s written in .net core 2.2.The 2 web api’s are triggered by web jobs which are console Apps in .netcore 2.2. They are all different projects and in different repositories in Azure DevOps. I am trying to deploy the web Api's together with the webjob into 2 web app services(eg: WebApi1 + Web job1 into App service1 and WebApi2 + Web job2 into App service2) in Azure using the Azure DevOps build and release pipelines. I am able to add the webjobs manually into App Service from

Azure Pipeline to build docker images fails using same docker file in Visual Studio

怎甘沉沦 提交于 2020-01-24 10:26:25
问题 I'm trying to create a deployment pipeline to deploy my image to Kubernetes cluster. The first step in this process is to create an image based on the docker file. The docker file I'm using was generated from Visual Studio when I added docker support and successfully creates the image when right clicking on the docker image and selecting to create it. When I configure the Azure Pipeline, the create docker image fails as soon as it tries to build the actual solution. The previous step grabs

Printing the Console output in the Azure DevOps Test Run task

折月煮酒 提交于 2020-01-24 04:53:09
问题 I am doing some initial one off setup using [BeforeTestRun] hook for my specflow tests. This does check on some users to make sure if they exist and creates them with specific roles and permissions if they are not so the automated tests can use them. The function to do this prints a lot of useful information on the Console.Writeline. When I run the test in my local I can see the output from this hook function on the main feature file and the output of each scenario under each of them. But

Visual Studio Team Services Continuous Integration: NuGet Restore Task Failed

大兔子大兔子 提交于 2020-01-24 03:26:35
问题 I am using Continuous Integration feature in Team Services (was Visual Studio Online). My build definition targets a specific project in a solution (not the whole solution), which is ClientUI MVC website. The solution contains three projects: ClientUI AdminUI Client Services The Build Definition for ClientUI Project: Repository : Nuget Installer Step: I have tried different params but not working. Visual Studio Build Before trying to target the a single project, my build definition was

Azure DevOps - use GUI instead of YAML to edit build pipeline

拟墨画扇 提交于 2020-01-24 02:53:09
问题 Some time ago Azure DevOps have added a support for YAML build pipelines. This is all nice for power users (I get it, pros only use command line & plain text tools, GUI is for weak) for quite a few reasons. Is there a way to go back to a GUI (classic editor) to edit an existing pipeline? I have disabled the feature as described here https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-designer?view=azure-devops&tabs=new-nav , however it only helps for new pipelines. Somehow I

Run UWP appium tests in azure pipeline

混江龙づ霸主 提交于 2020-01-24 01:14:06
问题 Just wondering if it is possible to run Appium based UI tests for a UWP app in azure pipeline? The first challenge is, how to deploy the UWP to test within the pipeline. 回答1: I managed to figure it out. We need to install the app after the build, which can be done using running the powershell script included in the build artifacts. But the important things is the installation of the certificate, which needed to be forced. - task: PowerShell@2 displayName: 'Install app' inputs: filePath: '$

Run UWP appium tests in azure pipeline

元气小坏坏 提交于 2020-01-24 01:13:40
问题 Just wondering if it is possible to run Appium based UI tests for a UWP app in azure pipeline? The first challenge is, how to deploy the UWP to test within the pipeline. 回答1: I managed to figure it out. We need to install the app after the build, which can be done using running the powershell script included in the build artifacts. But the important things is the installation of the certificate, which needed to be forced. - task: PowerShell@2 displayName: 'Install app' inputs: filePath: '$

Checkout part of a branch in Azure DevOps Pipelines (GetSources)

半城伤御伤魂 提交于 2020-01-23 05:53:17
问题 My repository in my organisation's devops project contains a lot of .net solutions and some unity projects as well. When I run my build pipeline, it fails due to several of these: Error MSB3491: Could not write lines to file "obj\Release\path\to\file". There is not enough space on the disk. I would like the pipeline to only checkout and fetch parts of the repository that are required for a successful build. This might also help with execution time of the pipeline since it currently also

How to set path in azure-pipeline using prependpath

强颜欢笑 提交于 2020-01-23 03:49:05
问题 I am trying to set path in an Azure-pipeline using prepend path echo '##vso[task.prependpath]$(HOME)/miniconda3/bin' echo "New path 1... $PATH" ##vso[task.prependpath]($HOME)/miniconda3/bin echo "New path 3... $PATH" ##vso[task.prependpath]($env.HOME)/miniconda3/bin echo "New path 3... $PATH" ##vso[task.prependpath]$(env.HOME)/miniconda3/bin echo "New path 4... $PATH" ##vso[task.prependpath]$(env.home)/miniconda3/bin echo "New path 5... $PATH" ##vso[task.prependpath]$(home)/miniconda3/bin