Sam
Sam

Reputation: 543

Run Test on another node if dedicated node is occupied in Jenkins

I'm trying to overcome a problem of configuring the test runs for the below Scenarios on Jenkins:

Problem: When node1 is occupied by running job1, job2 has to wait till the job1 completes on that node1, But node3,node4 are free as jobs3 and jobs4 are completed at that time. I want to utlize node3 or node4 for job2 when node1 is occupied by job1.

How to configure such scenarios in Jenkins?

Upvotes: 0

Views: 198

Answers (1)

Sam
Sam

Reputation: 543

I did this using || operator between the nodes.

Eg: node1 || node2

Restrict where this project can be run
Label Expression:  node1 || node2

Upvotes: 2

Related Questions