How to perform parallel run in multiple nodes/machine in Jenkins #26117
-
Hi! I hope someone can give an idea how we can perform parallel execution in multiple node/machine in Jenkins pipeline. I followed the instruction here https://github.com/cypress-io/cypress-example-kitchensink/blob/master/Jenkinsfile for setting up Jenkins parallel execution. But it seems that it only execute in one machine. Whenever I check the logs I see that every stages are being run in parallel but only in one machine My JenkinsPipeline is declarative and here is the setup
Our built-in node has 6 executors and this is only the node where we can run our test as we specify by its label Our goal is to run it in parallel either in multiple nodes (where we will set up different machines) or in multiple executors using the same node. Please take note that our Jenkins is dockerized that's why in my Jenkins pipeline I need to use the docker cypress base image. One thing to add is that even though our test is in parallel right now running our test in locally is bit faster compared when running it in CI using Cypress parallelization Hoping someone can help or give us a code snippet to follow based on our setup. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @bilarallen did you get a breakthrough here? I have same issue trying to get |
Beta Was this translation helpful? Give feedback.
Hey @3mrfouad yep I was able to resolve this issue. Basically, you need different nodes/agents to achieve parallel run in different machines. We are using AWS ec2 instance as VMS a.k.a
ec2-fleet
then you need to specify the agent label. Here's the code snippet I have for my jenkins file: