azure-pipelines

How to include appsettings.json settings into Azure DevOps build and release pipeline

旧巷老猫 提交于 2020-08-10 20:00:25
问题 We are currently researching the usage of Azure DevOps Build and Release pipelines. We did successfully create a simple Asp.NET Core web application and pushed that application into an Azure DevOps repository. We did successfully create a pipeline for that application consisting of Restore, Build, Test, Publish, and Publish Artifacts (as shown on the attached image) and successfully built that pipeline. In the Azure Portal, we did successfully create a Resource Group and the Web App to host

How to include appsettings.json settings into Azure DevOps build and release pipeline

放肆的年华 提交于 2020-08-10 19:59:52
问题 We are currently researching the usage of Azure DevOps Build and Release pipelines. We did successfully create a simple Asp.NET Core web application and pushed that application into an Azure DevOps repository. We did successfully create a pipeline for that application consisting of Restore, Build, Test, Publish, and Publish Artifacts (as shown on the attached image) and successfully built that pipeline. In the Azure Portal, we did successfully create a Resource Group and the Web App to host

Azure pipelines ARM deployment task YAML multiline [duplicate]

﹥>﹥吖頭↗ 提交于 2020-08-10 18:57:08
问题 This question already has answers here : Multiline string in Azure Pipelines (3 answers) Closed 2 days ago . Is it possible to use multiline in YAML in Azure Pipelines tasks? For instance for the ARM deployment task, there is an overrideParameters property. It would be nice if this could be split accross several lines instead of putting everything in one line: - task: AzureResourceManagerTemplateDeployment@3 displayName: 'ARM deploy MyFunctionAPP' inputs: deploymentScope: 'Resource Group'

Is it possible to call a Test task from the powershell loop you created in Azure Pipelines

杀马特。学长 韩版系。学妹 提交于 2020-08-10 05:49:06
问题 Is it possible to call a Test task from the PowerShell loop you created: foreach ($i in ${{parameters.files}}) - task: VSTest@2 displayName: 'VsTest - testPlan' inputs: testSuite: '$i' testConfiguration: '$(testConfig)' Because when I tried to use: - ${{ each item in parameters.files }}: - task: VSTest@2 displayName: 'VsTest - testPlan' inputs: testSuite: '$item' testConfiguration: '$(testConfig)' it does not work as the and gets an error: Unexpected Values Trying to use same pipelines

Is it possible to call a Test task from the powershell loop you created in Azure Pipelines

坚强是说给别人听的谎言 提交于 2020-08-10 05:49:04
问题 Is it possible to call a Test task from the PowerShell loop you created: foreach ($i in ${{parameters.files}}) - task: VSTest@2 displayName: 'VsTest - testPlan' inputs: testSuite: '$i' testConfiguration: '$(testConfig)' Because when I tried to use: - ${{ each item in parameters.files }}: - task: VSTest@2 displayName: 'VsTest - testPlan' inputs: testSuite: '$item' testConfiguration: '$(testConfig)' it does not work as the and gets an error: Unexpected Values Trying to use same pipelines

Where is the .apk file output after signing it via Azure android signing build pipeline?

折月煮酒 提交于 2020-08-10 04:51:28
问题 I'm signing an apk file in a build pipeline using the Azure 'Android Signing' task but I cannot see the path in which the signed apk is output to. I've exported the entire root of the build pipeline as .zip file, but a signed .apk file does not exist. What's even more confusing is that the Android Signing task is passing , so the signed .apk must be somewhere right? The question is where! Thanks 回答1: Android Signing' task did not create a new apk. The signed apk is still in the output folder

Blue/Green Deployment using VSTS Release Definitions

懵懂的女人 提交于 2020-08-05 07:29:12
问题 I haven't seen any information how to do a Blue/Green deployment on VSTS Release Definitions. I have a VSTS Release Definition that deploys new changes automatically into our Prod environment as new check-ins are done in our source code. Now, the project is using Azure Traffic Manager and it has added two endpoints which are on different regions/data centers. Now that we have the Azure Traffic Manager configured, I was wondering how can I change on VSTS and at deployment time how Azure

Convert visual build pipeline in yaml file

南笙酒味 提交于 2020-08-05 03:58:59
问题 I'm working with Azure DevOps pipeline and I'm using the visual designer. But there is also the YAML file. I would like to export my Build pipeline into a YAML file. It seems to be possible like mentionned in this Github issue (https://github.com/MicrosoftDocs/vsts-docs/issues/2504) using the View YAML button. But this button is disable in my project (I cannot click on it): I don't know how to enable it. The preview feature New YAML pipeline creation experience is enabled. I'm using some Task

Convert visual build pipeline in yaml file

为君一笑 提交于 2020-08-05 03:55:13
问题 I'm working with Azure DevOps pipeline and I'm using the visual designer. But there is also the YAML file. I would like to export my Build pipeline into a YAML file. It seems to be possible like mentionned in this Github issue (https://github.com/MicrosoftDocs/vsts-docs/issues/2504) using the View YAML button. But this button is disable in my project (I cannot click on it): I don't know how to enable it. The preview feature New YAML pipeline creation experience is enabled. I'm using some Task

How to clean build using self-hosted agent when queuing

 ̄綄美尐妖づ 提交于 2020-07-30 07:18:21
问题 Using a git source repo in Azure DevOps - what is the proper way to clean all directories, sources, sources directory, etc. when queuing a new build? There is UX under Get Sources that supports this - but you can't assign your own custom variables for the values - it's a static dropdown for both Clean and Clean options fields. 回答1: Stumbled across this docs posting, but it states Build.Clean is deprecated - but the docs aren't clear that Build.Repository.Clean is now the successor. This is