azure-pipelines-release-pipeline

Is there a way to do nested variables in VSTS Release Management

*爱你&永不变心* 提交于 2019-12-31 02:08:09
问题 I have a few variables created in Variable Groups with the following names: CodeNetworkShare.Dev CodeNetworkShare.Test CodeNetworkShare.Prod I imported this variable group in my Release Definition. Then I tried the following ways to use this in Release definition I created a local variable in the Release Definition as follows: Name = CodeNetworkShare1 Value = $(CodeNetworkShare.$(Release.EnvironmentName)) I tried to use it directly in the task using the following expression: $

Not able to print the Azure-Keyvault secret in the release pipeline

心已入冬 提交于 2019-12-29 10:00:08
问题 I am trying the below code to retrieve the Azure-Key vault secret from the release pipeline. But I am not able to print the exact string using the below code (Get-AzKeyVaultSecret -vaultName "keyvalultname" -name "Password").SecretValueText $Password= (Get-AzKeyVaultSecret -vaultName "keyvalultname" -name "Password").SecretValueText $Password Write-Output 'DBPassword is $Password' Write-Host 'DBPassword is $Password' if ($Password-eq "Password01") { Write-Host "1" } else { Write-Host "0" }

Ability to resume/reject a TFS release after a manual intervention

喜你入骨 提交于 2019-12-25 00:02:51
问题 In TFS 2017 Update 1 (On-Prem) there is a release definition with a manual intervention step in between. The manual intervention notification is set for a group where an user User1 is not part of. User1 has Builder and Project Admin rights; And is also part of the TFS team. During the manual intervention of a release User1 is able to resume or reject the release. But we don't want this to happen. I could not find the rights in TFS Microsoft online documentation for being able to do this. What

VSTS Release : bubbling up release quality metrics

╄→гoц情女王★ 提交于 2019-12-24 21:13:12
问题 We have a continuous deployment pipeline that is setup to deploy to a chain of environments. In the portal, all I can see is the following : How do I configure the portal such that it also shows : How long each release took, split by environment Historic graph which show release time taken over time, split by environment Failures split by environment over time 回答1: You can’t configure VSTS to show these, there isn’t such feature available in VSTS. Also, there isn’t the official extension can

How to copy a VSTS artifact to a Azure Storage account container folder?

ぐ巨炮叔叔 提交于 2019-12-24 20:00:41
问题 I have a VSTS release pipeline in which I need to copy the build artifact to a storage account blob container. This is pretty easy with the Azure File Copy task, but the difficulty seems in the need to specify a folder in the container to copy the file to. I tried extending the container name, but that (obviously) doesn't work. Rewriting the destination in the "additional arguments" section neither. Looking at the source of the task I cannot find anything in that direction, so I'm wondering

how to add the on premise TeamCity service endpoint successfully in VSTS?

好久不见. 提交于 2019-12-24 17:07:19
问题 I am trying to create the release steps for SSDT project in VSTS but the build artifacts are available in TeamCity. For that I installed TeamCity artifacts for Release Management extension in VSTS. After installed above extension in VSTS, then I am trying to link the build artifacts to release configuration. so, I tried to configure the TeamCity endpoint and verifying the connection to the TeamCity. Then I got the error like below screenshot. Next I tried to add the build artifacts in VSTS

Ef core migrations in full .net project in VSTS

廉价感情. 提交于 2019-12-24 12:07:56
问题 I have created a .net core web app targeting the full .net framework I Have created a class library (.net framework) In this dll I have referenced ef core and created a context. Migrations work when I use the package manager. The Problem I am currently facing I need to be able to use migrations during a VSTS deployment. I have tried creating a powershell deployment script in VSTS to call dotnet-ef commands. This doesn't work, because I can't install Microsoft.EntityFrameworkCore.Tools.DotNet

Edit VSTS Wiki page via VSTS API

荒凉一梦 提交于 2019-12-24 12:03:24
问题 I am trying to edit a VSTS wiki page via powershell and VSTS API and I am using this documentation as a reference. When I try to edit an existing page, I get the following error: Invoke-RestMethod : {"$id":"1","innerException":null,"message":"The page '<PAGE That I CREATED ALREADY>' specified in the add operation already exists in the wiki. Please specify a new page path.","typeName":"Microsoft.TeamFoundation.Wiki.Server.WikiPageAlreadyExistsException, Microsoft.TeamFoundation.Wiki.Server",

VSTS - Download triggering artifact

ⅰ亾dé卋堺 提交于 2019-12-24 11:29:33
问题 I currently have a release defined for pushing clients to an internal nuget server. Each release is identical in terms of steps, the only thing that changes is the triggering artifact. However when I add another artifact to a "generic" release, so that there are now ClientA and ClientB artifacts on the release, both artifacts are downloaded when the release is triggered and they are both then pushed. What I would like to know is if it is possible to have the release only download the

Can I write custom task start/end records to VSTS build/release log

橙三吉。 提交于 2019-12-24 08:20:08
问题 I would like to be able to add items to the logs displayed during VSTS builds and releases: I've looked at this page and written the following test powershell script $guid = $env:taskGuid write-host "##vso[task.logdetail id=$guid;name=project1;type=build;order=1]create new timeline record" # write-host "##vso[task.logdetail id=new guid;parentid=exist timeline record guid;name=project1;type=build;order=1]create new nested timeline record" write-host "##vso[task.logdetail id=$guid;progress=50