azure-pipelines-release-pipeline

Modify TFS 2015 BuildNumber during build process

蓝咒 提交于 2019-11-29 14:35:55
I have some embedded C software stored under TFS and also have a corresponding TFS build definition that successfully checks out the code and builds it using the relevant compilers. So just to be clear, although this is TFS, I'm not building a .NET application. Now that I have the build working, I'm trying to provide overall software versioning support which should be linked to the build process. My current aim is as follows: The source code that is being built has a header file that has #defines for three variables, Major Version, Minor Version and Build Number. This header file is then used

Passing release variables between two agent phases

谁说我不能喝 提交于 2019-11-29 10:20:26
I'm working with TFS on-premise. My issue is that during a release I have two agent phases separated by a manual intervention. In the first agent phase, I set a variable with: Write-Verbose $("##vso[task.setvariable variable={0};]{1}" -f $variablename, $variable) Problem is that in the second agent phase, this variable doesn't exist anymore, even if the same agent is used for the second release phase. How may I pass a variable between two agent phases during the same release? There is no way to persist variables (no matter powershell variables or VSTS user defined variables) between two agent

How to modify Azure DevOps release definition variable from a release task?

风流意气都作罢 提交于 2019-11-28 13:02:47
What is the easiest way to get key rotation to work for azure storage accounts from a AzureDevOps relase task? The current plan is to re-generate the old key after release to invalidate it, and have a fresh key that can be used on next deployment. But to get that to work it seems like I at least need to store the name of the key to use in a release variable. I had a look at he logging tasks ( https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md ), but that only changes the value in the current release and does not modify the release definition. You can use

Trigger builds based on TFS workitem information

此生再无相见时 提交于 2019-11-28 10:32:36
问题 I am currently looking for best practices to implement as use case in VSTS Details below 1) Our board has several tfs work items and these work items can have multiple states example : 'Ready for build', 'Ready for deployment' etc 2) Based on the changes made to work item, is it possible to trigger a build ? For example if the workitem is moved to 'Ready for deployment' state, a deployment build should be triggered In other words how can we trigger builds based on changes to a work item ? 回答1

Release Azure Data Factory project using VSTS Release

醉酒当歌 提交于 2019-11-28 10:05:32
问题 I want to create an Azure Data Factory project in Visual Studio rather than create an Azure Data Factory directly in the Azure portal. The reason why is that I wish to have the project in source control since it is a team project and for the sake of having it backed up. I want to use Visual Studio Team Services to automate the Build and Release processes for the aforementioned Azure Data Factory project. The Build process is straightforward; it will be an MSBuild run on the solution. However,

Modify TFS 2015 BuildNumber during build process

江枫思渺然 提交于 2019-11-28 08:29:25
问题 I have some embedded C software stored under TFS and also have a corresponding TFS build definition that successfully checks out the code and builds it using the relevant compilers. So just to be clear, although this is TFS, I'm not building a .NET application. Now that I have the build working, I'm trying to provide overall software versioning support which should be linked to the build process. My current aim is as follows: The source code that is being built has a header file that has

How to trigger VSTS build and release when pushing tags?

妖精的绣舞 提交于 2019-11-28 05:58:33
I have rather simple scenarion, one master branch then when I want to do a production release I want to tag a commit with eg. vX.X.X. The CI/CD pipeline looks like this Build -> Staging Environment -> Production Environment Every commit to master is sent to staging environment When I add a vX.X.X tag to a commit I want the staging and production environment to trigger. I have found this link Trigger build when pushing tag to git . I just can't figure it out how to make it work. It simply does not work for me. Is it possible and how do I configure the VSTS to start a build when a tag is added

Deployment for Service Fabric service version upgrade fails on VSTS Release

假装没事ソ 提交于 2019-11-28 00:47:44
问题 Summary The following error appears at log. The content in ConfigPackage Name:Config and Version:1.0.0.20180315.2 in Service Manifest 'TwoServicePkg' has changed, but the version number is the same. I changed only the code of one of the services, so I changed only one version of the code in the manifest. In this case, there is no problem with the upgrade through Visual Studio. However, upgrading via VSTS will cause the above error. Details I created VSTS CI/CD for Service Fabric as default.

Azure DevOps, YAML release pipelines? [closed]

孤人 提交于 2019-11-27 19:34:56
I am following this process to create a YAML build pipeline for a .NET Core Web API project: https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-yaml?view=vsts When it comes to releasing it, I note that the (recently renamed) Azure DevOps doesn't seem to support YAML for defining release pipelines. However, I can see that deployment tasks have been defined eg: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment?view=vsts Are we expecting an upgrade to the release pipelines functionality to support YAML and, if so, when? Justin

Is there a way to use VSTS Variable Groups per environment?

谁都会走 提交于 2019-11-27 07:51:50
问题 I'm moving my configuration from using web.config transforms to being based on VSTS variables. I get process variables, you define a variable, pick an environment, and you're good to go. I also see "Variable Groups", these seem great, have KeyVault integration, and overall seem like a much better option. But...I don't see a way to bind a Variable Group to a specific environment in my VSTS release process. I can't honestly see how these would be any use to me without this feature. I've