Skip to content
Discussion options

You must be logged in to vote

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:

pipeline {
    agent none
    stages {
        stage('CBS UI Test') { 
            environment {
                CYPRESS_RECORD_KEY = credentials('cypress-record-key')
                CYPRESS_trashAssetsBeforeRuns = 'false'
            }

            parallel {
                stage('Tester A') {
                   agent {
                        docker {
                        label 'ec2-fleet-cypress'
…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bilarallen
Comment options

Answer selected by bilarallen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants