azure-pipelines-release-pipeline

How to get the download url of the artifact in Visual Studio Team Services?

ぃ、小莉子 提交于 2020-01-13 19:53:11
问题 I'm developing a plugin in Visual Studio Code that allows downloading of artifacts from VSTS (Visual Studio Team Services) but I don't know where to get the URL? How can I get the URL of the download button? 回答1: You can get the download URL for build artifacts through REST API. Use the REST API to get build artifacts: GET https://{account}.visualstudio.com/DefaultCollection/{project}/_apis/build/builds/{buildID}/artifacts?api-version=2.0 You will get the response as below: { "count": 1,

VSTS build with multiple repos

自古美人都是妖i 提交于 2020-01-12 07:45:11
问题 My team uses VSTS for CI/CD of a web project. In order to keep our code separated, we use two separate repositories for front-end and back-end. Two questions are raised by this: How do I set up a build that merges the build artifacts from the two repositories into a single release? How do I trigger this single build/release process from each repository separately? 回答1: First step is to create a CI build for both repositories. Once you have them compiling and generating the necessary artifacts

TFS 2015.3 Release Management Update Release Description After The Fact

我与影子孤独终老i 提交于 2020-01-07 05:34:07
问题 Is it possible to update a Release's Description after it's created? It seems that you get one chance when you create it, but if you miss it, you cannot add/update the description afterward. On-prem TFS 2015 Update 3. 回答1: You can’t update a release’s description in TFS. This feature is available on Visual Studio Team Services. 回答2: You can update the release description. Click on the highlighted in the image below to open the dialog. 来源: https://stackoverflow.com/questions/44655981/tfs-2015

Where are VSTS retained releases stored?

*爱你&永不变心* 提交于 2020-01-07 03:56:46
问题 I'm using an on-premises VSTS build agent to build and release my application. The retention configuration for the release is set to 30 days, and in the VSTS web site I can see there are 30 days worth of releases retained. However, I was expecting to see the .zip files for the retained release somewhere in the build agents working folder, but cannot find them anywhere. Can someone tell me where the releases are stored? 回答1: The VSTS releases stores in team services server and you can only

How do I configure a build on VSTS to FTP deploy

做~自己de王妃 提交于 2020-01-06 05:34:08
问题 I want to use VSTS to build and deploy my app (to FTP) when Update the master branch of my project. I have the script below. It works in that it triggers and builds but then fails to deploy because it can't find the files and I don't know what values to enter. I get the error below. When VSTS builds, where does it put the build files? I've watched youtube but all the examples are old and don't reflect how VSTS works right now so I'm totally stuck. There are no articles here that reflect how

VSTS Task: Window machine file copy: system error 53

我是研究僧i 提交于 2020-01-05 07:20:42
问题 I'm trying to make a release from VSTS to a VM(running on AWS) that is running an IIS. For that I use three tasks. Windows Machine File Copy Manage IIS App Deploy IIS App Before the release I'm running a build pipeline that that gives me an artifact containing the web app (webapp.zip). When I manually put it on the server I can run step 2 and 3 of my release and the application works. The problem I have is that I don't get the Windows Machine File Copy to work. It always throws an exception

How Restrict the Agent Job to Run only if Specific Job succeeded

夙愿已清 提交于 2020-01-05 07:10:14
问题 I have 3 Jobs in Azure Devops Release Pipeline : Agent job1 Agent job2 Agent job3 I want to configure Agent job2 In such a way that it should run even if Agent job1 Fails. for that, I have set Agent job2 property of Run this job to even if the previous job fails . Now, I want to configure Agent job3 in such a way that it should run only if Agent job2 succeded What configuration I need to make in Agent Job3 to make it Dependant on Agent Job2 回答1: How Restrict the Agent Job to Run only if

RequireJS script error when requiring “ReleaseaManagement/Core/RestClient” on TFS 2015 and 2017

筅森魡賤 提交于 2020-01-05 05:31:46
问题 I'm creating an tfs hub Extension (2015/2017) and need to read the projects' release defs and create releases also. I know, I could make direkt Rest Calls instead of using the methods of the rest clients. But they seem more comfortable to me. When I try to get the Restmanagement RestClient, I get: Script error for: ReleaseManagement/Core/RestClient http://requirejs.org/docs/errors.html#scripterror In both TFS.2015.2 and TFS.2017 Doesn't the client yet exist on-premise? 回答1: You can refer to

Azure devops pipeline get work items between builds

主宰稳场 提交于 2020-01-04 09:53:10
问题 I'm looking for a pre-made option to take 2 builds, and compare the work items or PRs completed between them. i know there are REST API options in order to find out this information ( https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds/get%20work%20items%20between%20builds?view=azure-devops-rest-5.0 ) , but i would rather not build my own app for this if one already exists. Is there something built into azure devops that shows this information, preferably in an exportable

Release Variables through REST API - Visual Studio Team Services

筅森魡賤 提交于 2020-01-04 00:08:11
问题 Is it possible to pass variable values to the REST endpoint for Release Management in VSTS? E.g. Calling PUT https://tfs.vsrm.visualstudio.com/defaultcollection/{project}/_apis/release/releases/30?api-version=3.0-preview.4 with the request of: { "id": 30, "name": "Release-3", "variables": { "VariableName": { "value": "testing123" } } } I somehow managed to get it to work if I call POST https://k2tfs.vsrm.visualstudio.com/density/_apis/release/releases/?api-version=3.0-preview.4 then take that