azure-devops

How to do a Git pull request on remote branches via the command line

元气小坏坏 提交于 2021-02-11 12:11:15
问题 I have a feeling i'm using the wrong words, or misunderstanding the words i'm using, which is making searching for what I want to do difficult. Right now I have a Git repo with 3 branches hosted on Azure Devops (very similar to Github/Gitlab/Bitbucket etc). My current flow is to commit and push locally (using PHP Storm) and then login to Azure Devops and manually use their UI to do a pull request from my develop branch to my staging branch. Then I log into the server and git pull from the

How to do a Git pull request on remote branches via the command line

 ̄綄美尐妖づ 提交于 2021-02-11 12:11:04
问题 I have a feeling i'm using the wrong words, or misunderstanding the words i'm using, which is making searching for what I want to do difficult. Right now I have a Git repo with 3 branches hosted on Azure Devops (very similar to Github/Gitlab/Bitbucket etc). My current flow is to commit and push locally (using PHP Storm) and then login to Azure Devops and manually use their UI to do a pull request from my develop branch to my staging branch. Then I log into the server and git pull from the

Where do I find TestContext.AddResultFile()?

自闭症网瘾萝莉.ら 提交于 2021-02-11 08:19:31
问题 I am having trouble referencing the documented method AddResultFile() on the TestContext class, allegedly found in the Microsoft.VisualStudio.TestTools.UnitTesting package/namespace. This is my package list: <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" /> <PackageReference Include="Selenium.Support" Version="3.141.0" /> <PackageReference Include="Selenium.WebDriver" Version="3.141.0" /> <PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="2.46.0" />

Where do I find TestContext.AddResultFile()?

别说谁变了你拦得住时间么 提交于 2021-02-11 08:19:21
问题 I am having trouble referencing the documented method AddResultFile() on the TestContext class, allegedly found in the Microsoft.VisualStudio.TestTools.UnitTesting package/namespace. This is my package list: <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" /> <PackageReference Include="Selenium.Support" Version="3.141.0" /> <PackageReference Include="Selenium.WebDriver" Version="3.141.0" /> <PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="2.46.0" />

Where do I find TestContext.AddResultFile()?

夙愿已清 提交于 2021-02-11 08:18:05
问题 I am having trouble referencing the documented method AddResultFile() on the TestContext class, allegedly found in the Microsoft.VisualStudio.TestTools.UnitTesting package/namespace. This is my package list: <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" /> <PackageReference Include="Selenium.Support" Version="3.141.0" /> <PackageReference Include="Selenium.WebDriver" Version="3.141.0" /> <PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="2.46.0" />

How to get the unit test results in variables in Azure DevOps Pipelines?

只愿长相守 提交于 2021-02-11 06:08:42
问题 I have a build pipeline in Azure DevOps and I'm using the .NET Core task for applying unit testing. I need to get the result of the unit tests in variables. For example, if there are 10 tests cases and two failed, I need to get something like: failedTestCases = 2 succeededTestCases = 8 This is because I need those values in the next tasks. Is there a way to do that? To be clear, I don't need to publish the results, they are already being published, I need to get those values in execution time

How to get the unit test results in variables in Azure DevOps Pipelines?

非 Y 不嫁゛ 提交于 2021-02-11 06:07:27
问题 I have a build pipeline in Azure DevOps and I'm using the .NET Core task for applying unit testing. I need to get the result of the unit tests in variables. For example, if there are 10 tests cases and two failed, I need to get something like: failedTestCases = 2 succeededTestCases = 8 This is because I need those values in the next tasks. Is there a way to do that? To be clear, I don't need to publish the results, they are already being published, I need to get those values in execution time

Azure DevOps Permissions for Individual Repositories

爷,独闯天下 提交于 2021-02-11 05:19:42
问题 Let's say I have created a new project (MyProject) on ADO. In it, I have 2 repositories (MyRepo1 and MyRepo2). I would like to invite another user to contribute code to MyRepo1, but don't want them seeing MyRepo2. How can this be done? I have tried creating a team (Team1) for MyRepo1 and adding the user to that team. However, they still cannot see anything in ADO under my project. If I add them to the default team of the project, they can see all the repos (bad). This is how I set up Team1:

Azure DevOps Permissions for Individual Repositories

北城余情 提交于 2021-02-11 05:18:51
问题 Let's say I have created a new project (MyProject) on ADO. In it, I have 2 repositories (MyRepo1 and MyRepo2). I would like to invite another user to contribute code to MyRepo1, but don't want them seeing MyRepo2. How can this be done? I have tried creating a team (Team1) for MyRepo1 and adding the user to that team. However, they still cannot see anything in ADO under my project. If I add them to the default team of the project, they can see all the repos (bad). This is how I set up Team1:

How to write a secret to azure key vault from Azure DevOps pipeline?

£可爱£侵袭症+ 提交于 2021-02-11 04:56:31
问题 I have created a Key Vault in Azure DevOps using ARM and I now want to write a secret to it within the same pipeline. I created an Azure PowerShell task with the following inline PowerShell: $secretvalue = ConvertTo-SecureString $(Secret) -AsPlainText -Force Set-AzureKeyVaultSecret -VaultName $(VaultName) -Name $(SecretName) -SecretValue (ConvertTo-SecureString $(Secret) -AsPlainText -Force) The key vault gets created fine, but I get the following error when trying to write the secret: [error