Skip to content

Issue: on successful run of one thread execution jenkins stops complete execution for cypress-parallel. #181

Open
@ketteq-neon

Description

@ketteq-neon

while executing scripts on Jenkins I am using three threads:
t1, t2, and t3 if one of these thread executions completes then it exits from the execution and next script try to run and Jenkins execution
failed due to this issue.

scripts to run:
"cy:install": "cypress install",
"ketteq:config:script": "cypress run --browser chrome --headless --reporter cypress-multi-reporters --reporter-options configFile=reporter-config.json",
"cy:cleanRun": "run-s -c cy:cleanReports cy:install",
"sleep5s": "node -e "setTimeout(() => process.exit(0), 5000)"",
"cy:mergeJsonFiles":"mochawesome-merge "cypress/reports/mochawesome/*" > "cypress/reports/mochawesome.json"",
"cy:generateHtmlReport":"marge cypress/reports/mochawesome.json -f mochawesome_final.html -o cypress/reports/finalHtml",
"cy:generateJenkinsHtmlReport":"marge cypress/reports/mochawesome.json -f mochawesome_final.html -o ../../../target/test-classes/e2e/cypress/reports/finalHtml",
"cy:mergeGenerateHtmlReport":"run-s -c sleep5s cy:mergeJsonFiles sleep5s cy:generateHtmlReport cy:generateJenkinsHtmlReport",
"ketteq:uiE2EParallelScript": "cypress-parallel -d cypress/e2e/api/uiE2E -t 3 -s ketteq:config:script -w parallel-weights.json",
"cy:ketteqAutomation:all": "run-s -c cy:cleanRun ketteq:uiE2EParallelScript cy:mergeGenerateHtmlReport",

Is there any way to wait for execution of all threads in cypress-parallel?

on local its working fine!!

Please help!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions