azure-pipelines-build-task

NG Build fails in Azure Pipelines with NPM error 134

隐身守侯 提交于 2020-01-14 13:36:10
问题 Approx 50% of my hosted builds are failing with npm error 134. I am building the same commit with the same build definition using hosted vs2017. I am building an Angular Application using the Angular CLI. The npm task calls 'run build' which is defined as "ng build --prod" in my package.json. Both a successful build and failed build are using npm task version 1.1.49 and npm verion 6.8. This leads me to believe it is something related to the hosted environment. The hosted vs2017 and vs2019

Using PowerShellGet on VSTS hosted agents

妖精的绣舞 提交于 2020-01-13 13:49:34
问题 I am using Visual Studio Team Services (VSTS) hosted build agents in my build process. My builds mostly rely on the 'PowerShell' step that calls a script that I have in git. From within this script, I would like to manage PowerShell modules using PowerShellGet. For example, I would like to be able to install pscx simply by running Install-Module -Name pscx Unfortunately, hosted agents use PowerShell 4 and they don't have the PowerShellGet module installed. As a result, the Install-Module

Create Large Amount of Work Items in TFS Using Javascript REST API

佐手、 提交于 2020-01-11 13:37:10
问题 I need to create around 6000 work items via my TFS extension. I use typescript and REST API in my extension. below is the code I use to create work item var ops = [ { path: "/fields/System.Title", op: "add", value: "Hello world" } ]; var options = { url: 'http://localhost:8080/tfs/DefaultCollection/Agile Git/_apis/wit/workItems/$Bug?api-version=2.2', username: 'username', password: 'password', domain: 'domain', method: 'PATCH', headers: { 'Content-Type': 'application/json-patch+json' }, body:

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

Get the sources from the branch that triggered the build in Team Services

偶尔善良 提交于 2020-01-01 09:09:07
问题 I would like to create an integration build in VS Team Services, that is triggered when a commit is done to any branch (develop/feature xy) except master. I am able to create a trigger for this: but how do i checkout the sources of the branch that triggered the build? In the task tab, the first step is 'Get Sources' and here i'm only able to choose one branch (the * wildcard is not possible here): Otherwise for example a build is triggered by a feature branch, but the sources are taken from

Building Project in VSTS doesn't build all projects in solution

Deadly 提交于 2020-01-01 06:10:10
问题 I'm having a strange issue where when I create a build with "Visual Studio Build" and supply the *.sln file it pretends to build all projects (I see this in the log) but when it comes to publishing artifacts there is only a few of the projects from the solution (mainly test projects and some miscellaneous projects but no the main ones) I have dependencies sorted ok as this build fine in VS2015 (I currently use WebDeploy) Has anyone seen this behavior? 回答1: Since you mentioned "WebDeploy", I

Error TF51635 Occurred while trying to create workitem batch

巧了我就是萌 提交于 2019-12-31 04:54:05
问题 When I try to create work items trough batch create operation I am getting below Error TF51635: There are duplicate temp IDs in the Update XML.\\r\\nParameter name: workItemUpdates\ There is no much information available in web regarding this error.below link contains TFS errors and codes , But I couldn't find detailed information about same. https://msdn.microsoft.com/en-us/library/aa337645(v=vs.80).aspx As per my research this issue could associate with Id notation in batch (error occurred

Fatal: Could not read password for 'https://OrganizationName@dev.azure.com': terminal prompts disabled

喜你入骨 提交于 2019-12-31 03:44:35
问题 I'm trying to merge the develop branch to the master branch when building with Azure Pipelines PowerShell task. But while executing the command git push , I'm getting this error: Fatal: Could not read password for 'https://OrganizationName@dev.azure.com': terminal prompts disabled The code repository is "Azure Repos Git". git checkout -b master git config --global user.email "xxxxxxx@xxxx.xxx" git config --global user.name "xxxxx" git merge origin/develop git push origin master After

Build last commited SQL Script VSTS

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-30 12:21:20
问题 I'm new to VSTS and I want to know how to always build only the latest committed SQL Script. Example: I committed example.sql from my repository, the VSTS Build needs to get only the "example.sql" zip it and publish the artifact to get ready to release. How can I do that? 回答1: VSTS build all the existing files/scripts of the current working tree (specified branch of the repo). If you want to zip and publish the latest changed files as artifacts, you can add a PowerShell task (for linux and

Increase the screen resolution on Test Agent

瘦欲@ 提交于 2019-12-30 02:28:06
问题 Running a automated test against a desktop WPF application works fine on my local machine and on Azure VM Windows Server 2012R2 when accessed via RDP. However, when the VM is used as build machine, controlled by test agent on TFS or VSTS, all test fails because of the screen resolution is set to 1024x768 screen resolution. The application is not configure to run until this display settings. Is there any way to change the screen settings when we deploy the test agent? Change VSTS agent session