azure-pipelines-release-task

Pass a Variable group name using REST API Azure devops

ぃ、小莉子 提交于 2021-02-10 18:26:42
问题 Is there any way to pass a variable group name to a release pipeline using REST API without editing the release definition. I am able to do it using the following $defurl = "https://vsrm.dev.azure.com/org/proj/_apis/release/definitions/13?api-version=5.1" $def = Invoke-RestMethod -Uri $defurl -Method Get -Headers $header $def.variableGroups="VariableGroupName" $json = @($def) | ConvertTo-Json -Depth 99 $udef = Invoke-RestMethod -Uri $defurl -Method Put -Body $json -ContentType "application

Can I programmatically set an overridable default value for a variable in an Azure DevOps Release Pipeline?

落爺英雄遲暮 提交于 2021-01-29 16:06:05
问题 I have a variable called some_var in an Azure DevOps release pipeline. I'd like to set the default at release time. But I want to set it programmatically based on the contents of a file in the artifact drop folder. But I still want the user to be able to overwrite the dynamically set value at the time they're creating the release. So the end-user behavior would be that they (1) navigate to the Release and (2) click "Create New". The dialog comes up with the some_var variable already set to a

Trigger Azure Pipelines build via API

懵懂的女人 提交于 2020-01-11 12:55:33
问题 I made a working Azure Pipeline to build my codebase. Looking for a way to trigger the Azure Pipelines build via API, ideally REST. If REST is not possible, perhaps I could try invoking the build via Azure Functions using a resource ID of sorts. I would like my own repository monitor to issue an API request that would trigger the build when my conditions are met. Another question - is it possible to set "pipeline variables" via API - e.g. I make an API call passing values to be used as my

Trigger Azure Pipelines build via API

蓝咒 提交于 2020-01-11 12:54:51
问题 I made a working Azure Pipeline to build my codebase. Looking for a way to trigger the Azure Pipelines build via API, ideally REST. If REST is not possible, perhaps I could try invoking the build via Azure Functions using a resource ID of sorts. I would like my own repository monitor to issue an API request that would trigger the build when my conditions are met. Another question - is it possible to set "pipeline variables" via API - e.g. I make an API call passing values to be used as my

Azure Dev ops replace tokens per environment in release pipeline

两盒软妹~` 提交于 2019-12-08 15:54:34
i am using the Replace token extension https://marketplace.visualstudio.com/items?itemName=qetza.replacetokens to replace variable in **/*.config files Our build pipeline creates one artifact that needs to be deployed to all environments we have 2 environments in our release pipeline(DEV ,QA) Each environment has a set of variables configured I have added the replace token task onto our release pipeline My config files looks like this The the tokens are not replaces , i Am new to Azure DevOps , am i missing anything here? Release activities run on the release agent . You're running token

How do I stop the previous queued releases without having to cancel them one at a time?

自作多情 提交于 2019-12-08 08:30:11
问题 We have a release pipeline that automatically creates a new release every time a build is completed. At that point, we have a release candidate, so this makes sense. Every build is potentially releasable. In the pipeline, the Release goes automatically to dev. So we get a check in and the build and then it goes to the Dev server. There is an approval gate on the release moving to Stage. The approval usually takes a while and development will continue while waiting for the approval. Now, we

Azure Dev ops replace tokens per environment in release pipeline

好久不见. 提交于 2019-12-08 05:09:49
问题 i am using the Replace token extension https://marketplace.visualstudio.com/items?itemName=qetza.replacetokens to replace variable in **/*.config files Our build pipeline creates one artifact that needs to be deployed to all environments we have 2 environments in our release pipeline(DEV ,QA) Each environment has a set of variables configured I have added the replace token task onto our release pipeline My config files looks like this The the tokens are not replaces , i Am new to Azure DevOps

How to get the variable value in TFS/AzureDevOps from Build to Release Pipeline?

谁说胖子不能爱 提交于 2019-12-01 18:19:18
I've defined a variable in my TFS/AzureDevops Build definition (say it's time ) and assign the value using PowerShell task within my build definition. Like, Type: Inline Script. Inline script: $date=$(Get-Date -Format g); Write-Host "##vso[task.setvariable variable=time]$date" You can refer to this similar example Now I want to get this value in my release definition pipeline. I configured this build definition as continuous deployment to my release definition. My Question is How can I get the value of time in my release definition using some other variable? Is this possible? The is no

How to get the variable value in TFS/AzureDevOps from Build to Release Pipeline?

自古美人都是妖i 提交于 2019-12-01 17:49:53
问题 I've defined a variable in my TFS/AzureDevops Build definition (say it's time ) and assign the value using PowerShell task within my build definition. Like, Type: Inline Script. Inline script: $date=$(Get-Date -Format g); Write-Host "##vso[task.setvariable variable=time]$date" You can refer to this similar example Now I want to get this value in my release definition pipeline. I configured this build definition as continuous deployment to my release definition. My Question is How can I get