azure-pipelines

Tags trigger not working in azure pipelines

冷暖自知 提交于 2021-01-01 04:22:10
问题 I have the exact same pipeline in two different branches of the same repository, stage and prod . I'd like the pipeline on branch stage to run when a tag starting with stage@ is created (e.g. stage@1.0.1 ); similarly, I'd like the pipeline on branch prod to run when a tag starting with prod@ is created (e.g. prod@1.0.1 ). In branch stage , trigger is defined like this: # .azure-pipelines.yml [refs/branches/stage] trigger: tags: include: - stage@* In branch prod , trigger is defined like this:

Tags trigger not working in azure pipelines

强颜欢笑 提交于 2021-01-01 04:19:25
问题 I have the exact same pipeline in two different branches of the same repository, stage and prod . I'd like the pipeline on branch stage to run when a tag starting with stage@ is created (e.g. stage@1.0.1 ); similarly, I'd like the pipeline on branch prod to run when a tag starting with prod@ is created (e.g. prod@1.0.1 ). In branch stage , trigger is defined like this: # .azure-pipelines.yml [refs/branches/stage] trigger: tags: include: - stage@* In branch prod , trigger is defined like this:

Azure Devops install Python package from Azure Artifacts inside Docker

て烟熏妆下的殇ゞ 提交于 2020-12-30 10:51:06
问题 I am trying to install a pip package from Azure Artifacts as part of a Docker image(with Docker@2 task) but whatever I try does not work. It looks like my pip inside Docker cannot authenticate against Azure Artifacts whatever I try. Closest I got is with RUN pip install keyring artifacts-keyring ENV ARTIFACTS_KEYRING_NONINTERACTIVE_MODE true RUN pip install <> --index-url https://pkgs.dev.azure.com/<>/_packaging/<>/pypi/simple/ but in my Azure devops, i keep getting ERROR: Could not find a

Azure Devops install Python package from Azure Artifacts inside Docker

本小妞迷上赌 提交于 2020-12-30 10:50:13
问题 I am trying to install a pip package from Azure Artifacts as part of a Docker image(with Docker@2 task) but whatever I try does not work. It looks like my pip inside Docker cannot authenticate against Azure Artifacts whatever I try. Closest I got is with RUN pip install keyring artifacts-keyring ENV ARTIFACTS_KEYRING_NONINTERACTIVE_MODE true RUN pip install <> --index-url https://pkgs.dev.azure.com/<>/_packaging/<>/pypi/simple/ but in my Azure devops, i keep getting ERROR: Could not find a

Publish *.snupkg symbol package to private feed in VSTS

喜欢而已 提交于 2020-12-30 05:58:22
问题 I want to package and publish a .net standard based code as a nuget package using VSTS build. I have created a private nuget feed (in VSTS Artifacts) to which I would like to publish nuget package along with symbols package. I tried using dotnet CLI tasks to build and publish but it only publish .nupkg and not *.snupkg to the nuget feed. I googled alot but I only found articles related to publishing to nuget.org and not to a private feed. 回答1: Publish *.snupkg symbol package to private feed

Is an Azure DevOps build pipeline, is there a way to cancel one pipeline job from another job?

亡梦爱人 提交于 2020-12-29 04:59:57
问题 I have an Azure DevOps Build Pipeline which contains two Agent Jobs, which I'll call Job A and Job B. I want these jobs to run simultaneously, but if Job A fails, then I don't need Job B to run to completion. Is there any way to add a task to Job A which will cancel Job B (or, alternately, terminate the entire pipeline with a "Failed" status) if any of Job A's tasks failed? 回答1: Add a PowerShell task that cancel the pipeline when a task failed: steps: - powershell: | Write-Host "Cancel all

Is an Azure DevOps build pipeline, is there a way to cancel one pipeline job from another job?

梦想与她 提交于 2020-12-29 04:59:38
问题 I have an Azure DevOps Build Pipeline which contains two Agent Jobs, which I'll call Job A and Job B. I want these jobs to run simultaneously, but if Job A fails, then I don't need Job B to run to completion. Is there any way to add a task to Job A which will cancel Job B (or, alternately, terminate the entire pipeline with a "Failed" status) if any of Job A's tasks failed? 回答1: Add a PowerShell task that cancel the pipeline when a task failed: steps: - powershell: | Write-Host "Cancel all

Azure starting 2 self hosted servers deliver files to Azure managed agent both in pool but only 1 accepting copyfiles task

别等时光非礼了梦想. 提交于 2020-12-15 06:23:06
问题 I have a very strange behaver where I starting 2 self-hosted agents from my AWS server to deliver files to the managed agent in azure all with different names to be unique. but in the azure pipeline, i can see both pipelines are taking the files from only 1 place instead of taking files from its unique place in the self-hosting server. here is the command I'm starting the self-hosting docker server : they all take form : docker run -d --rm -t --name=ios_docker_128_linux_slave_2 -e AZP_WORK=

Azure starting 2 self hosted servers deliver files to Azure managed agent both in pool but only 1 accepting copyfiles task

大憨熊 提交于 2020-12-15 06:21:49
问题 I have a very strange behaver where I starting 2 self-hosted agents from my AWS server to deliver files to the managed agent in azure all with different names to be unique. but in the azure pipeline, i can see both pipelines are taking the files from only 1 place instead of taking files from its unique place in the self-hosting server. here is the command I'm starting the self-hosting docker server : they all take form : docker run -d --rm -t --name=ios_docker_128_linux_slave_2 -e AZP_WORK=

Build pipeline's default branch. What does it mean?

回眸只為那壹抹淺笑 提交于 2020-12-15 03:43:18
问题 In the Release workflow in Azure DevOps Services, while setting up Continuous Deployment trigger, there is this option which 'The build pipeline's default branch' . I don't understand what it means and how can I view the default branches for different pipelines in my project. Any reference to documentation on this aspect will also help This appears in a couple of other places also in the Pipelines, but I can't remember it now. Thanks, 回答1: As this document describes the default branch is