How to run/execute few tests of a job on multiple nodes in jenkins

175 views
Skip to first unread message

Amit Mehrotra

unread,
Dec 1, 2015, 4:50:29 PM12/1/15
to Jenkins Users
HI,

Is there a way to load balance the tests which we have in a job in Jenkins. Suppose a job is supposed to run 6 tests on 3 nodes, is there a way that we can run 2 tests each at the same time on each node. For e.g Tests are - A,B, C, D,E,F 

Nodes are - 1,2,3

Can we some how run tests A,B on node 1 tests C,D on node 2 and tests E,F on node 3 or any 2 tests on any node at the same time so that all the 3 nodes are being utilized effectively at the same time.

Any help would be highly appreciated.

Thanks, 

Amit

Victor Martinez

unread,
Dec 2, 2015, 6:52:08 AM12/2/15
to Jenkins Users

Amit Mehrotra

unread,
Dec 7, 2015, 4:40:12 AM12/7/15
to jenkins...@googlegroups.com
Thanks Victor!!

Just to elaborate our tests are some python scripts which are run on a system through SSH.
Python scripts are available on system under test.
When user triggers the job and select few tests then these tests should get executed on nodes.

Suppose a job is supposed to run 6 tests on 3 nodes, is there a way that we can run 2 tests each at the same time on each node.

 For e.g Tests are - A,B, C, D,E,F 

Nodes are - 1,2,3

Can we some how run tests A,B on node 1 tests C,D on node 2 and tests E,F on node 3 or any 2 tests on any node at the same time so that all the 3 nodes are being utilized effectively at the same time.

Is it possible using Jenkins??

I am currently trying to do it through -- "Restrict where this project can be run" and in label expression I specify the nodes using --

expr&&expr
and
expr||expr
or

Will this help?
Or how can we achieve it??

Any help would be highly appreciated.

Thanks, 

Amit

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/736yyx2knbk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fb25518f-59ab-40f5-911b-a8ce3c1c612c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages