azure-devops-pipelines

azure devops pipeline CopyFiles@2 task copy's files from agent A but DownloadBuildArtifacts@0 downloads the files to agent B

寵の児 提交于 2021-02-11 02:24:59
问题 i have wired behavior with the copy files from hosted agent and then downloading them back to the same agent looks like it copies the files from agent A but the same pipeline downloading them back to Agent B with is in another machine doing another build job that is not related Upload from ios_docker_142_linux_slave_1 Download back to different agent ios_docker_141_linux_slave_3 , why ? - task: CopyFiles@2 inputs: CleanTargetFolder: 'true' SourceFolder: '$(Agent.HomeDirectory)/../${

Conditional Stage Execution in Azure DevOps Pipelines

大兔子大兔子 提交于 2021-02-07 10:44:07
问题 I want a stage in an Azure DevOps pipeline to be executed depending on the content of a variable set in a previous stage. Here is my pipeline: stages: - stage: plan_dev jobs: - job: terraform_plan_dev steps: - bash: echo '##vso[task.setvariable variable=terraform_plan_exitcode;isOutput=true]2' name: terraform_plan - stage: apply_dev dependsOn: plan_dev condition: eq(stageDependencies.plan_dev.terraform_plan_dev.outputs['terraform_plan.terraform_plan_exitcode'], '2') jobs: - deployment: "apply

Azure Self Hosted agent : A session for this agent already exists , when running more then 1 build agent

老子叫甜甜 提交于 2021-01-29 11:34:55
问题 I have defined 1 agent called "ios_dockeragent" in agent pools configuration : Settings/Agent pools/Default In my Azure DevOps organization, I bought 4 Parallel jobs and 3 Parallel hosted jobs so I do not have a parallel jobs problem. From each build server I start the self hosted server like this where "ios_dockeragent" is defined in devops: docker run -d --rm -t --name=ios_docker_64 -e AZP_WORK=/temp/working_dir -v =/temp/working_dir:/azp -e AZP_URL=https://dev.azure.com/xx -e AZP_TOKEN

Azure pipeline How to use bigger server for hosted agent builds?

谁说我不能喝 提交于 2021-01-29 10:00:27
问题 I don't understand but how do I set in the hosted azure pipeline build server to be a bigger machine with more ram and more CPU's? i want to avoid installing a self-hosted agent on one of the Azure VM's I just want to use more stronger hosted agent, where can i configure this? I'm using a hosted MAC agent. 回答1: This is not possible. Please check this documentation If Microsoft-hosted agents don't meet your needs, then you can deploy your own self-hosted agents or use scale set agents. 来源: