azure-pipelines-build-task

Integrate Visual Studio Coded UI Test with VSTS/TFS Build pipeline

落花浮王杯 提交于 2019-12-12 02:14:04
问题 I need to integrate VS Coded UI Test in VSTS/TFS build pipeline to test a Visual Studio Extension, however I could not find reference for this in MSDN, Is this possible with TFS 2015.2 and VSTS? 回答1: The recommended way is to use Visual Studio Test Task since Run Functional Test Task is deprecated. Use version 2.x or higher of the Visual Studio Test task together with phases to run unit and functional tests on the universal agent. For more details, see Testing with unified agents and phases.

Retrieve VSTS/TFS Build task name list

限于喜欢 提交于 2019-12-11 17:46:08
问题 I need to retrieve build task name list from VSTS/TFS build. Is there inbuilt method/library available to support this? I have already noted (as below sample) that we can retrieve same in release. import ReleaseClient = require("ReleaseManagement/Core/RestClient"); var rc= ReleaseClient.getClient(); release.environments.forEach(function (env) { rc.getTasks(VSS.getWebContext().project.id, release.id, env.id).then(function(taskList){ ............... ......Some code here }); } 回答1: The

Is there a VSTS build task to remove unused Docker containers from the registry?

*爱你&永不变心* 提交于 2019-12-11 16:46:37
问题 Problem I have a Docker Container registry on Azure with one container holding multiple tagged versions. I'd like to remove the unused tags as they're taking up a lot of space and can be remade at any time. Reasons The only reason this Docker container registry exists is because of how VSTS handles builds and releases of Docker containers. When running a VSTS build, it stores the container in the registry on Azure with a new tag. Not all builds will be released so those tags can be safely

How to verify the publisher of a message to a service bus using VSTS server-based task?

半腔热情 提交于 2019-12-11 16:03:09
问题 I want to use Publish To Azure Service Bus VSTS server task and verify on the recipient side the VSTS user , project and account from which the published message originated. According to task.json related information is being posted onto the service bus, but for my purposes this is not secure, as I want to protect myself against client spoofing the information. Multiple different VSTS users, projects and accounts will be using the task. Once a client of the task has credentials to post to the

what's the path of msbuild in vsts

你。 提交于 2019-12-11 10:37:10
问题 asp.net web form project needs to be migrated to vsts. The project uses python script to build and publish. In the code it calls the msbuild.exe. However, I am confused how to refer msbuild location in vsts repalcing previous location in python file.. 回答1: You can get the location from Hosted Agent Capabilities . Navigate to https://dev.azure.com/{organization}/_settings/agentpools Select the specific Pool and Agent( Hosted VS2017 in your scenario) Switch to Capabilities tab For example,

Is there a way to get the SubscriptionID used in task: “Azure Resource Group Deployment”

為{幸葍}努か 提交于 2019-12-11 06:47:41
问题 I am using Azure Resource Group Deployment task in Azure Devops. Some of the Override template parameter s include the SubscriptionID. -virtualNetworkId /subscriptions/53614803-d327-4397-bf55-8dedcc24be0d/resourceGroups/$(resourceGroup)/providers/Microsoft.Network/virtualNetworks/vnet Is there a was to use the SubsciptionID used in the Azure subscription connection ? Reason: The subscriptionId needed to be known in the build pipeline. This also solves the uniqueString template issue, where we

Download Build Artifacts in vsts not able to get latest build of a specific build definition

大憨熊 提交于 2019-12-11 06:26:41
问题 I am using the download artifact plugin in VSTS to get the specific artifact of different build def using the current build definition.I am unable to download the artifact to my local agent (I installed private agent). Error below is throwing: [‎12-‎01-‎2018 PM 01:30] Shwetha Rattihalli: 2018-01-11T07:23:53.7178634Z ##[section]Starting: Download Build Artifacts 2018-01-11T07:23:53.7385942Z ============================================================================== 2018-01-11T07:23:53

Syncing my Github repo to MS Visual Studio Team Services

↘锁芯ラ 提交于 2019-12-11 06:08:28
问题 I am new to VSTS and trying to sync my Github repos to the VSTS environment to completely integrate my working environment to it. I want to sync my Github repos to update whatever changes made on VSTS. This procedure is very confusing. I followed this link: http://intranoggin.com/Blog/February-2017/Synchronizing-code-between-GitHub-and-VSTS.aspx The new interface does not totally reflect the tutorial, but I was able to follow most parts. I did the followings: I create a new definition of

Deploy Test agent failing in VSTS due to WinRM issue

安稳与你 提交于 2019-12-11 01:22:26
问题 I'm attempting to run a build definition that will ultimately run functional tests on an azure machine, however the build falls over on the deploy test agent step with the following error.... Error occurred on 'seleniumvm.ukwest.cloudapp.azure.com:5986'. Details : 'Connecting to remote server seleniumvm.ukwest.cloudapp.azure.com failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.'. For troubleshooting, refer https:

Build separately a web app backend in a Xamarin solution using VSTS

岁酱吖の 提交于 2019-12-10 22:22:34
问题 Got a Xamarin solution which includes a project for a web app backend. Trying to set up a separate build definition for the web app backend so that it deploys to Azure app service. We have that API app folder inside the Xamarin solution folder. When trying manual mapping to build the web app it fails as it tries to build the whole solution while it should only build that project as I used MSBuild task and pointed it to the csproj file in that folder. How can we get that specific folder to