0
votes

I am having one windows self hosted agent for Azure DevOps pipeline. If we run two pipelines, one has to wait for the other to be completed. Is there any way to do parallelly run the pipelines by doing any configuration in agent?

2

2 Answers

1
votes

Check this doc(Self-hosted agent):

  • For public projects that are self-hosted, you can have unlimited parallel jobs running. For private projects, you can have one job and one additional job for each active Visual Studio Enterprise subscriber who is a member of your organization.

Is there any way to do parallelly run the pipelines

If you are using public project, the number of parallel jobs is Unlimited, if you are using private, the default number of parallel job is one self-hosted job. We need to buy self-hosted parallel jobs, then we could run the pipeline in parallel.

In addition, we could open Organization Settings->Parallel jobs to check the number of parallel jobs, check the pic below:

enter image description here

Buy self-hosted parallel jobs steps:

Open Organization Settings->Billing->set up Billing and buy self-hosted parallel jobs. Check the pic below:

enter image description here

Result:

enter image description here

Note: we need to install another self-hosted agent and then we can run two pipelines at the same time.

Update1

Install another agent, we could install it in the same agent pool or create other agent pools and install the new agent.

Steps:

Open org settings->agent pool->open default agent pool and click the button New agent to download self-hosted agent zip.file->install another agent with the file and enter another agent name, click the pic below.

enter image description here

0
votes

If you buy more parallel executions you can do that. All you need to do is install another azure devops agent service on the same box and register it.