azure-pipelines

Azure DevOps - Where is my custom version counter variable stored?

走远了吗. 提交于 2020-05-16 12:04:49
问题 I have a Azure Pipeline file azure-pipelines.yml which is run by my Azure Linux agent. Next I have a variable myBuildCounter defined which is increased by a counter. The value of the variable myBuildCounter is saved during builds and its value reused, even though I didn't create any variables in the Azure interface. Does someone knows where the variable value is stored in Azure? Thanks in advance. Definition of variable variables: myBuildCounter: $[counter(variables['myBuildCounter'], 0)]

Azure DevOps - Where is my custom version counter variable stored?

余生颓废 提交于 2020-05-16 12:01:05
问题 I have a Azure Pipeline file azure-pipelines.yml which is run by my Azure Linux agent. Next I have a variable myBuildCounter defined which is increased by a counter. The value of the variable myBuildCounter is saved during builds and its value reused, even though I didn't create any variables in the Azure interface. Does someone knows where the variable value is stored in Azure? Thanks in advance. Definition of variable variables: myBuildCounter: $[counter(variables['myBuildCounter'], 0)]

Install mongodb on azure devops host for testrun

喜夏-厌秋 提交于 2020-05-16 05:16:31
问题 I am trying to switch to azure devops and I need a mongodb instance running for some integration tests. The hosts, that are supplied by azure devops do not contain an installation of mongodb and I do not know where I could supply a new docker image with VS and mongodb. Is this even the way to go? Is there no way to change the docker file of the images, so they install mongodb aswell? I allready tried to add a new pool and add an image there, but this does not seem to be the right direction :/

Install mongodb on azure devops host for testrun

不羁岁月 提交于 2020-05-16 05:16:08
问题 I am trying to switch to azure devops and I need a mongodb instance running for some integration tests. The hosts, that are supplied by azure devops do not contain an installation of mongodb and I do not know where I could supply a new docker image with VS and mongodb. Is this even the way to go? Is there no way to change the docker file of the images, so they install mongodb aswell? I allready tried to add a new pool and add an image there, but this does not seem to be the right direction :/

What is the maximum length of a variable in Azure Pipelines?

▼魔方 西西 提交于 2020-05-15 10:13:08
问题 I got this warning after adding a long string generated programmatically as an Azure Pipelines variable (as a quick and easy way to test changes instead of pushing a file to my repo): ##[warning]Environment variable 'INPUT_SCRIPT' exceeds the maximum supported length. Environment variable length: 40384 , Maximum supported length: 32766 The warning is pretty clear to understand and seems appropriate given a regular environment variable, but the task that used this new pipelines variable works

What is the maximum length of a variable in Azure Pipelines?

自古美人都是妖i 提交于 2020-05-15 10:13:06
问题 I got this warning after adding a long string generated programmatically as an Azure Pipelines variable (as a quick and easy way to test changes instead of pushing a file to my repo): ##[warning]Environment variable 'INPUT_SCRIPT' exceeds the maximum supported length. Environment variable length: 40384 , Maximum supported length: 32766 The warning is pretty clear to understand and seems appropriate given a regular environment variable, but the task that used this new pipelines variable works

Can group name variable be dynamic in azure pipelines?

心不动则不痛 提交于 2020-05-15 08:41:09
问题 I have two environments on azure. One difference between them is only environment variables that came from variable groups. Is it possible to set up group name dynamically for one pipeline instead of set up two pipelines that can map their own group variables? It is an example of my build pipeline trigger: - master - develop jobs: - job: DefineVariableGroups steps: - script: | if [ $(Build.SourceBranch) = 'refs/heads/master' ]; then echo "##vso[task.setvariable variable=group_name_variable

.Net/VS Test runner fails when running in Azure DevOps

跟風遠走 提交于 2020-05-15 08:11:55
问题 I'm running C# unit tests targeting .Net Framework 4.6.2. Things are working fine locally, and it also works fine build and running all tests from VS2019 installed on the build agent. But when running a build in Azure DevOps, using either hosted or self hosted agent, test step fails even though all tests are successful. Running vstest.console.exe manually from command line, on the build agent, works fine and succeeds. I run this command with the same parameters as done by Azure DevOps. Error

Error NU1101: Unable to find package ProjectABC.Core.Services. No packages exist with this id in source(s)

倾然丶 夕夏残阳落幕 提交于 2020-05-15 07:44:05
问题 I am trying to implement CI/CD on Azure DevOps for my Asp.net Core project. Project having Nuget packages from three different sources: MSBUild in Azure Pipeline is going to find nuget packages in Offline Packages or Nuget.org only but not going to find external source which i am also using: http://dev-abc-api-nugetserver-wi.azurewebsites.net/nuget/ I have tried below code in Azure Pipeline Build but that didn't work /p:RestoreAdditionalSources="http://dev-abc-api-nugetserver-wi.azurewebsites

Azure DevOps Pipeline define variable in deployment and reuse in subsequent job

会有一股神秘感。 提交于 2020-05-14 14:37:06
问题 I'm using an Azure DevOps pipeline to deploy my code and now I'm in need of passing a variable value from a deployment job to a subsequent job that depends on it. I've read up on this example but it does not seem to work at all. What I'm trying to do is run an Azure ARM Deployment that provisions a Key Vault. The name of the key vault is outputted from the ARM deployment job and I'm then trying to pass that name to another job which needs to add specific secrets. Access control is taken care