azure-pipelines-build-task

How to retrieve build attachment from VSTS release summary tab

試著忘記壹切 提交于 2019-12-25 16:43:49
问题 I need to retrieve a build attachment attached using (##vso[task.addattachment]value) from release summary page (ms.vss-releaseManagement-web.release-details-summary-tab). Please point me to any references to achieve this. Thanks in advance. 回答1: Yes, you need to do followings things to get this: 1.Get the related build id of the release via getConfiguration(): var c = VSS.getConfiguration(); c.onReleaseChanged(function (release) { release.artifacts.forEach(function (art) { var buildid = art

VSTS Maven Build Failaure - Forbidden

有些话、适合烂在心里 提交于 2019-12-25 16:10:00
问题 I am getting below error in vsts build. I followed same steps as mentioned here but no luck. 2017-10-12T15:20:56.2694625Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project mycompany-vault-client: Failed to deploy artifacts: Could not transfer artifact mycompany-vault:mycompany-vault-client:jar:0.0.1-20171012.152055-6 from/to mycompany-dts-visualstudio.com-mycompany.vault.packages (https://mycompany-dts.pkgs.visualstudio.com/

VSTS Maven Build Failaure - Forbidden

廉价感情. 提交于 2019-12-25 16:09:08
问题 I am getting below error in vsts build. I followed same steps as mentioned here but no luck. 2017-10-12T15:20:56.2694625Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project mycompany-vault-client: Failed to deploy artifacts: Could not transfer artifact mycompany-vault:mycompany-vault-client:jar:0.0.1-20171012.152055-6 from/to mycompany-dts-visualstudio.com-mycompany.vault.packages (https://mycompany-dts.pkgs.visualstudio.com/

Work item creation issue in TFS 2015.2 (with vsts-node-api)

孤人 提交于 2019-12-25 08:33:47
问题 I'm getting following error when creating bug item in TFS 2015.2 (On permise) via vso-node-api package, however same code is working perfectly in my VSTS (online) subscription. [Error: Failed Request: Bad Request(400) - TF401349: An unexpected error has occurred, please verify your request and try again.] statusCode: 400 Im using the WorkItemTrackingApi/createWorkItem function in vso-node-api library to create the work item. Following is the sample code I have used to create work items.

Build all csproj files, except Test projects

不羁的心 提交于 2019-12-25 01:38:25
问题 In DevOps you can create a dotnet build task where "Path to project(s)" can be set to **/*.csproj to build all the projects. This works just fine, but it (obviously) also builds my *.Test.csproj projects. I found some posts mentioning exclude patterns, so I tried doing the same as in those posts and tried the following combinations: **/*.csproj;-**/*.Test.csproj **/*.csproj;!**/*.Test.csproj **/*.csproj;-:**/*.Test.csproj **/*.csproj;!:**/*.Test.csproj For all attempts I get the following

Hide VSTS/TFS extension's Summary section when extension not added to build task

℡╲_俬逩灬. 提交于 2019-12-24 18:46:44
问题 We have developed VSTS/TFS extension which consists summary page with details generated from our extension task, at the end of build. we have added contribution similar to below in manifest file to add this summary section { "id": "build-status-section", "type": "ms.vss-build-web.build-results-section", "description": "A section contributing to our own new tab and also to existing build 'summary' tab", "targets": [ ".build-info-tab", "ms.vss-build-web.build-results-summary-tab" ], "properties

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

Powershell Invoke-RestMethod from VSTS build step fails with error 417

老子叫甜甜 提交于 2019-12-24 06:33:11
问题 We bought ourselves a Lametric clock (www.lametric.com) which supports displaying messages sent to it through a Web-API. We would like to integrate this into our CI/CD queue. For that we have written a Powershell script, which will send a specified notification. This script works fine, when executed locally. When executed from a (local) VSTS Build Agent, it fails with a status code 417. This is the powershell script: Param ( [Parameter(mandatory=$true)] [string] $BuildName, [Parameter

VSTS : automatically rebase/merge and requeue build validation gate in case of build expiration

假装没事ソ 提交于 2019-12-24 06:29:59
问题 We recently made a change to our build validation gate on PRs such that the builds expire "immediately" if another commit makes it into master branch before the current PR completes. See here. Even though this change ensures that the master is always accurate/buildable/healthy, this seems to have few negative effects on developer productivity : team members have to continuously keep an eye on their PRs to requeue builds validations. Not only they have to requeue builds manually, but prior to

VSTS Build Nuget Packager don't work

狂风中的少年 提交于 2019-12-24 01:37:17
问题 I'm trying to package one library after build to publish on my VSTS Packages feed. But the task Nuget Packager is not working. I've tried lots of combinations of settings, but I could not make it works. I've tried to package the library using .Net Core and .Net 4.6.2. I'm getting the following error when trying to pack with .Net Core or .Net 4.6.2: ##[error]The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please