azure-pipelines

Azure DevOps create build definition via REST API given existing YAML

拈花ヽ惹草 提交于 2021-02-07 04:14:40
问题 I have over 100 YAML files within an existing Git repo, each defining their own build pipeline. I am trying to create a PowerShell script to create these build definitions so I don't have to spend hours using the web UI to manually add new build definitions and point to their respective YAML files. I've come across similar questions and resources, but haven't been able to get this script to work. How to create Build Definitions through VSTS REST API Create Build Definition using Azure Devops

Whats the difference between a build pipeline and a release pipeline in Azure DevOps?

喜你入骨 提交于 2021-02-06 19:57:25
问题 I have set up several multi-staged build pipelines in Azure DevOps by using .yaml files. I've read about the "Release Pipelines" available, and I'm wondering what the benefits of those are? They seem to do the same, don't even offer .` YAML's support. So what's the main difference here? What can I do by using release pipelines, rather than usual build pipelines? 回答1: In Azure DevOps, before there was the multi stage yaml pipelines (now known as " Pipelines ", you usually used the Build

Whats the difference between a build pipeline and a release pipeline in Azure DevOps?

人走茶凉 提交于 2021-02-06 19:56:41
问题 I have set up several multi-staged build pipelines in Azure DevOps by using .yaml files. I've read about the "Release Pipelines" available, and I'm wondering what the benefits of those are? They seem to do the same, don't even offer .` YAML's support. So what's the main difference here? What can I do by using release pipelines, rather than usual build pipelines? 回答1: In Azure DevOps, before there was the multi stage yaml pipelines (now known as " Pipelines ", you usually used the Build

Can you pass a file to an azure pipeline?

末鹿安然 提交于 2021-02-05 11:30:49
问题 I have a website written in Typescript that has a button which triggers an azure pipeline to run. I would like to pass something from the website to the pipeline as a parameter and I saw here that you can pass a .yaml structure as object to a pipeline. Is it possible to pass a .yaml that was converted from an .xlsx file to the pipeline and how would one go about that? For clearance: The website has a file upload and I need the content of the .xlsx-file the user passes in one of the steps in

Can you pass a file to an azure pipeline?

我们两清 提交于 2021-02-05 11:30:13
问题 I have a website written in Typescript that has a button which triggers an azure pipeline to run. I would like to pass something from the website to the pipeline as a parameter and I saw here that you can pass a .yaml structure as object to a pipeline. Is it possible to pass a .yaml that was converted from an .xlsx file to the pipeline and how would one go about that? For clearance: The website has a file upload and I need the content of the .xlsx-file the user passes in one of the steps in

How to stop azure dev ops yaml validation build from running for each branch?

て烟熏妆下的殇ゞ 提交于 2021-02-05 09:44:39
问题 We are using azure dev ops for CICD and validating PR's. Yesterday I decided to start making yaml files for validation builds. I created the pipeline. I set the branch policy for 'development' fine and the validation build ran okay. However, something I see is that each time ANY branch gets a change to the files of the directory I've set the validation build for a build triggers. So, let's say I've made a yaml pipeline(CI only) for project Main(src/Main) and i've set a branch policy on branch

Azure Devops logging commands in release pipeline

此生再无相见时 提交于 2021-02-05 08:34:21
问题 I am trying to customize the output of my pipeline release through setting some env variables into a task. I found the following link: https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=powershell which however does not seem to work. What I am doing is simply to create a pipeline with a single task (either bash or PS), and there declaring the commands specified in the link through the inline version of the task. Has anyone already

Artifact not being downloaded in release pipeline - Azure DevOps

对着背影说爱祢 提交于 2021-02-05 08:33:56
问题 I've been struggling with an issue in Azure DevOps where I can build successfully an artifact through a build pipeline (I use the publish artifact task). I can see that the artifact is built successfully, as I can download it and I can reference it later in the release pipeline. The issue is that when the hosted agent is started, no artifacts are downloaded to the machine, and my $(System.DefaultWorkingDirectory) is always empty. I am out of ideas on why in the initialization of the hosted

Artifact not being downloaded in release pipeline - Azure DevOps

故事扮演 提交于 2021-02-05 08:32:05
问题 I've been struggling with an issue in Azure DevOps where I can build successfully an artifact through a build pipeline (I use the publish artifact task). I can see that the artifact is built successfully, as I can download it and I can reference it later in the release pipeline. The issue is that when the hosted agent is started, no artifacts are downloaded to the machine, and my $(System.DefaultWorkingDirectory) is always empty. I am out of ideas on why in the initialization of the hosted

Azure Pipeline - Use variable set in template task as a parameter in another template task

…衆ロ難τιáo~ 提交于 2021-02-04 21:46:20
问题 I have two templates created -- one for getting and setting some configurations such as region names and one for deploying. I'm trying to use the variables set in the configuration template task as parameter inputs to the deploy template. Is there an actual way of doing this? My config template: steps: - task: AzureCLI@2 name: Config displayName: Get Config and Generate Variables inputs: azureSubscription: '$(Subscription)' scriptType: bash scriptLocation: inlineScript inlineScript: |