Questions tagged [azure-pipelines-release-task]
98 questions
19
votes
2 answers
Assign specific agent on Azure DevOps YAML Pipelines
I am trying to assign a specific agent on my agent pool but I don't know how to do it. Does anyone know it?
I tried with this but doesn't work:
- stage: Deploy
pool: alm-aws-pool
agent.name: deploy-05-agent1

Dàniel Hernández
- 307
- 1
- 3
- 14
12
votes
2 answers
Trigger Azure Pipelines build via API
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…

Moshe Shmukler
- 1,270
- 2
- 21
- 43
12
votes
3 answers
How to get the variable value in TFS/AzureDevOps from Build to Release Pipeline?
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…

Jayendran
- 9,638
- 8
- 60
- 103
9
votes
2 answers
Share file between release stages in Azure DevOps (VSTS)
Big Picture: We are using Azure DevOps release process (so far we create steps in designer, not YAML pipelines). We release to 3 environments with 3 different databases. Part of the release is deploy database from DACPAC file. Since using…

Mateusz Moska
- 1,921
- 1
- 14
- 18
8
votes
1 answer
How to properly do file transforms on Azure Pipelines
I am attempting to do file transforms on my Web.config depending on each environment I publish to. Mostly, everything looks fine until I deploy to my UAT stage on the release pipeline.
In my build pipeline, here is the YAML file that I am using:
#…

Hussam Ahmed
- 413
- 1
- 5
- 17
7
votes
1 answer
Release Agent Configuration necessary for Web App Add task
To create a directory under and add a web app to IIS, I put this script in Azure DevOps Server Deployment Group job Powershell task:
New-Item -Path "C:\inetpub\wwwroot" -Name "MyNewApp" -ItemType "directory" `
C:\Windows\system32\inetsrv\appcmd.exe…

gregsonian
- 1,126
- 13
- 15
7
votes
4 answers
Control Job Order in Azure DevOps Release Pipeline
I have a complicated release that spans multiple deployment groups and I am planning to use the 3rd party vsts-git-release-tag extension to tag the release. Ideally, the entire release (all jobs) would succeed first before tagging the repository.
So…

NightOwl888
- 55,572
- 24
- 139
- 212
6
votes
1 answer
Azure Dev ops replace tokens per environment in release pipeline
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…

SitecoreNoob
- 301
- 1
- 3
- 12
5
votes
1 answer
Error building AzureRM Client: Error populating Client ID from the Azure CLI: No Authorization Tokens were found
Have you encountered the error mentioned in the subject line before?, I'm intrigued by it and unable to a solution. Here are the steps I executed to create a service principal
az login
-- Gives me a device code to enter in browser
Login to az…

learner
- 2,480
- 10
- 50
- 94
5
votes
1 answer
Cannot use resultSelector while developing an Azure DevOps extension
I am working on a custom extension for Azure Devops which already contains a service endpoint:
"type": "ms.vss-endpoint.service-endpoint-type"
In addition, I would like to create a custom Release Artifact Source:
“type”:…

Bar Belity
- 331
- 2
- 4
5
votes
2 answers
Why does my VSTS custom task passes with exit code 1?
I've the following annoying problem. My custom VSTS build task won't fail.
It always passes, while the $LASTEXITCODE is other then zero.
The code does as expected. It generates an error in the log. Despite that, the step succeeds and the build /…

Peter the Automator
- 796
- 6
- 16
4
votes
2 answers
How can I query which docker image is currently deployed to an app service from an azure release pipeline?
I have an Azure release pipeline that uses an Azure Web App for Containers task to deploy a docker image on an Azure App Service.
The image is specified in the form of some_image:$(Build.BuildId). The pipeline works as intended and successfully…

egwspiti
- 957
- 5
- 10
3
votes
1 answer
The release pipeline cannot be saved because the stage 'Prod' references a service connection that cannot be found
In AzureDevOps when saving a Release Pipeline I get the error:
VS402913: The release pipeline cannot be saved because the stage 'Prod' references a service connection that cannot be found, or that you do not have permission to access.
VS402913: The…

Jeremy Thompson
- 61,933
- 36
- 195
- 321
3
votes
1 answer
Azure Pipeline: Passing a variable from build to release pipeline
I'm building a docker image and use the BuildNumber as the image tag.
Later, on my release pipeline, I want to get this value and use it in azure cli task.
I know about Build.TriggeredBy.BuildNumber variable but the release might be triggered…

SagiLow
- 5,721
- 9
- 60
- 115
3
votes
1 answer
How do I stop the previous queued releases without having to cancel them one at a time?
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…

Monte Bertrand
- 33
- 4