azure-devops

No test result files were found using search pattern '…\**\TEST-*.xml

那年仲夏 提交于 2021-01-27 21:27:25
问题 I am running my test in TFS (Nunit plus Visual Studio with Adapter) and I have set the build definition as below Build succeeds but no test result file was generated Does TFS writes this Xml file ? Log 2017-02-08T08:08:40.8151428Z Executing the powershell script: D:\A1\agent\tasks\PublishTestResults\1.0.20\PublishTestResults.ps1 2017-02-08T08:08:41.0963795Z ##[warning]No test result files were found using search pattern 'D:\A1_work\1\s**\TEST-*.xml'. 回答1: If the Nunit plus Visual Studio with

VSTS Nested Variables

帅比萌擦擦* 提交于 2021-01-27 20:04:01
问题 I'm trying to accomplish a cascading variable, where when one design time variable is set, it cascades to other variables. Is this possible? I've tried with dot notation, I've tried without dot notation, and I've tried to do it in the task: I also tried this task plugin, but my agents are on 2.0 and the task doesn't run. Variable Toolbox Task Any ideas? Answer: You can override these variables at the environment level. I will have to expand these variables in my script manually and then set

Credential storage failed in eclipse in Mac OSX

左心房为你撑大大i 提交于 2021-01-27 17:04:13
问题 When i'm connecting to server projects in tfs using eclipse in mac with my credentials it is connecting without any issues, but when i check the 'save password' at the login dialogue box it is showing an error as 'Credential storage failed (Could not save your credentials)' Is there any way to get rid of this, because I don't want to enter my username and password every time when I open eclipse. See the following images. . . Any comments or suggestions would be appreciated. Thank you in

Credential storage failed in eclipse in Mac OSX

拥有回忆 提交于 2021-01-27 17:01:10
问题 When i'm connecting to server projects in tfs using eclipse in mac with my credentials it is connecting without any issues, but when i check the 'save password' at the login dialogue box it is showing an error as 'Credential storage failed (Could not save your credentials)' Is there any way to get rid of this, because I don't want to enter my username and password every time when I open eclipse. See the following images. . . Any comments or suggestions would be appreciated. Thank you in

Azure DevOps yaml pipeline, downloaded artifact is empty

可紊 提交于 2021-01-27 16:45:25
问题 Converting a pipeline from classic to YAML (so I know it works). I build and my publish artifact task looks like this: - task: PublishPipelineArtifact@1 displayName: 'Publish Pipeline Artifact' inputs: targetPath: '$(Build.ArtifactStagingDirectory)/MyArtifact' artifact: MyArtifact The result when build looks like this: I then want to deploy this to a webapp YAML: - stage: Dev jobs: - job: DeployApp displayName: Deploy Web App pool: name: myPrivate demands: msbuild steps: - task:

how to restrict the access on build.yml file from developers in Azure DevOps repository

落爺英雄遲暮 提交于 2021-01-27 13:31:43
问题 In Azure DevOps we have created both build and release pipeline using classic way and now we are planning this to convert to yaml file. But it seems in yaml method, the code can be put only on the root of the repo, where we want to keep the build yaml files in a separate repo, where the developers won't have access. How can achieve this? 回答1: You can use templates, put in the main repo only the minimal yalm that refers to a template with all the steps, the template exits in another repo. For

Having no permission for updating Variable Group via Azure DevOps REST API from running Pipeline

馋奶兔 提交于 2021-01-27 13:25:52
问题 In a nutshell, I am trying to update a Variable Group when executing a PowerShell script from a build Pipeline (increasing a build number, but this part is not so important). As it suggested in this topic and Azure DevOps docs I use code similar to: $url = "$($env:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI)$env:SYSTEM_TEAMPROJECTID/_apis/build-release/definitions/$($env:SYSTEM_DEFINITIONID)?api-version=2.0" Write-Host "URL: $url" $pipeline = Invoke-RestMethod -Uri $url -Headers @{ Authorization =

Authentication Failure using Git-LFS Azure DevOps Pipeline

巧了我就是萌 提交于 2021-01-27 13:23:16
问题 I'm getting the following Authentication failure attempting to checkout a repository with git-lfs support in an Azure Devops Pipeline: ##[command]git -c http.<url>="AUTHORIZATION: bearer ***" lfs fetch origin 8d51d72484c1b19a2427ed9f7736d410e43a8a29 fetch: Fetching reference 8d51d72484c1b19a2427ed9f7736d410e43a8a29 fatal: could not read Password for '<url>': terminal prompts disabled batch response: Git credentials for <url> not found. error: failed to fetch some objects from '<url>/info/lfs'

How to use environment variables set in Azure Pipeline in the web.config file of ASP.NET server?

故事扮演 提交于 2021-01-27 12:40:24
问题 I intend to use the following env variables from Azure Pipeline in ASP.NET's web.config file: <connectionStrings> <add name="ApplicationDbContext" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string="Data Source=tcp:app-$(DeploymentEnvironment).database.windows.net,1433;Initial Catalog=app-db;Persist Security Info=False;User ID=$(DeploymentDBUserName);Password=$(DeploymentDBPassword);Encrypt=True

How to use environment variables set in Azure Pipeline in the web.config file of ASP.NET server?

给你一囗甜甜゛ 提交于 2021-01-27 12:34:38
问题 I intend to use the following env variables from Azure Pipeline in ASP.NET's web.config file: <connectionStrings> <add name="ApplicationDbContext" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string="Data Source=tcp:app-$(DeploymentEnvironment).database.windows.net,1433;Initial Catalog=app-db;Persist Security Info=False;User ID=$(DeploymentDBUserName);Password=$(DeploymentDBPassword);Encrypt=True