azure-pipelines-release-pipeline

Incremental build VSTS for files changed only (Wordpress)

巧了我就是萌 提交于 2019-12-07 13:47:44
问题 I have a build and release pipeline for Wordpress php files, but I only want to create a build for the files changed in source control. I am not using a Visual Studio Build task as this does not apply in case of php files I guess. Here is how the pipeline is configured: Currently under the build I am using publish artifacts only from $(Build.SourcesDirectory) and under the release pipeline I am copying those artifacts to the website using FTP upload. Since the amount of files is larger than

Azure app service docker container 'Service Unavailable'

≡放荡痞女 提交于 2019-12-07 03:11:35
问题 I have followed the tutorials for building a .net core web application into a docker image, publishing to an azure container registry, and then I have setup my VSTS Release template to deploy the container to the app service. This all appears to work, I can view my image in the container registry, and the deployment appears to succeed - but when navigating to the app service site, all I get is an HTTP 503 - Service unavailable. The app service is started, I can see deployments in my file

Azure DevOps Release pipeline for create-react-app and GitFlow?

淺唱寂寞╮ 提交于 2019-12-06 21:49:03
We have a creat-react-app application, which includes a couple of variables that are different (react) build time, depending on where the build will be deployed. For example, we need to specify build time which URL will be used, e.g. https://app-stage.company.com for a release-x.y.z build vs. https://app.company.com for a master build (please refer to this article about GitFlow ). We've already created such a build pipeline as suggested here , which will build with the appropriate react config for any commit to branches master , release-x.y.z , dev , hotfix-x.y.z . We would like to create a

VSTS : Can I access the Build variables from Release definition?

為{幸葍}努か 提交于 2019-12-06 09:22:10
问题 In VSTS CI/CD , I am setting some variable's value in a Powershell task in CI. During CD I want to access that variable's value to do something , lets say echo. Is this possible? If so, how? 回答1: You could write it out to a json/xml file and include that file in your published artifacts of your build defintion. Then read in that file via PowerShell in your release definition. ConvertTo-Json | Out-File "file.json" Get-Content "file.json" | ConvertFrom-Json 回答2: For VSTS itself, it can not

VSTS: Unable to add Build Tag which trigger release

大城市里の小女人 提交于 2019-12-06 00:16:11
问题 In VSTS online, I have in my Release process (Under Triggers) the Continuous Deployment checked. On the Set trigger on artifact source , I put a Tag condition ( with tags ) set to Automated . I also have a tag in the Build Process. (Correctly adds the Tag to the build) But my release is not triggered automatically? In the Deployments status (In my Build) it says "Tags set for release trigger did not match the tags in build branch". But they match (See pictures). What could be the issue? 回答1:

Passing VSTS Release Multi-Configuration Phase two variables, but only one multiplier

眉间皱痕 提交于 2019-12-05 17:57:28
I have a VSTS Release Definition that is passed two variables, the contents of which I do not control. They contain a comma separated string of Names and a comma separated string of IDs which correspond to the Names by index. I want to use an agent phase configured with the parallelism option set to multi-configuration and the multiplier field set to the string of IDs, so the phase is run once for each ID. I also want to use the name that corresponds to the ID in that phase, but I'm not sure how to do this. If I set the multiplier to both variables (ID and Name) it runs the phase for the

VSTS agent very slow to download artifacts from local network share

浪子不回头ぞ 提交于 2019-12-05 13:40:05
I'm running an on-prem TFS instance with two agents. Agent 1 has a local path where we store our artifacts. Agent 2 has to access that path over a network path (\agent1\artifacts...). Downloading the artifacts from agent 1 takes 20-30 seconds. Downloading the artifacts from agent 2 takes 4-5 minutes. If from agent 2 I copy the files using explorer, it takes about 20-30 seconds. I've tried adding other agents on other machines. All of them perform equally poorly when downloading the artifacts but quick when copying manually. Anyone else experience this or offer some ideas of what might work to

How to Export and Import Test Cases from Visual Studio Team Services into MS Excel

拥有回忆 提交于 2019-12-05 08:14:13
问题 I have a requirement to import the Excel Based Test Cases into VSTS and Export Test Cases from VSTS into MS Excel. VSTS(Not TFS) 回答1: You can use below way to export test cases from VSTS to MS excel: Define a query for the test case you want to export. Create new query for all test case -> specify Work Item Type = Test case . Connect in MS excel. MS excel -> Team ribbon -> New List -> Servers -> add -> input VSTS URL( https://account.visualstudio.com ) -> OK -> Close -> select a team project

Is it possible to link a work item to a release?

送分小仙女□ 提交于 2019-12-04 15:14:41
We would like to link a TFS work item to a Release so we can easily, with one click from the Release, open a TFS item that contains more info about this release. Info like Release Notes etc. Is it possible? A release has these variables that can be set when the release is created but they won't hold a (clickable link). We cannot link work items for an existing release for now, there's already a user voice submitted here to suggest the feature, you can go and vote it up or submit a new one to achieve that in future release. However you can link work items from changeset, try below steps:

How can I create a Pull Request when a release completes in Azure DevOps?

て烟熏妆下的殇ゞ 提交于 2019-12-04 04:21:00
问题 A project I'm working on has 2 long-standing feature branches as well as the master branch. To fully automate deployments, I'd like to create a pull request from master into those two feature branches anytime a deployment goes out from an Azure DevOps Release. What kind of tooling in Azure DevOps would allow me to do create pull requests as a release task? 回答1: You can install the Create Pull Request extension, it gives you the ability to create a pull request automatically from your release