Skip to content

Jenkins Pipeline Error "Cannot create BrowserWindow before app is ready" #918

@wichopy

Description

@wichopy

Is this a Feature or Bug?

Bug

Current behavior:

Running Cypress on a Jenkins build pipeline returns the following error:

Cannot create BrowserWindow before app is ready
Error: Cannot create BrowserWindow before app is ready
    at Error (native)
    at Object._newBrowserWindow (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/lib/gui/windows.js:90:14)
    at Object.create (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/lib/gui/windows.js:183:18)
    at Object._render (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/electron.js:60:21)
    at /Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/lib/browsers/electron.js:108:24
    at tryCatcher (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/promise.js:510:31)
    at Promise._settlePromise (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/promise.js:567:18)
    at Promise._settlePromise0 (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/promise.js:612:10)
    at Promise._settlePromises (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/promise.js:691:18)
    at Async._drainQueue (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/Users/web/Library/Jenkins/workspace/ontinuous-integration-setup-XUUWEDMZSZATM5VNREUERBR2OSTUGL6EADKBRHDOVCDZRWLEB7LQ/node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/server/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:574:20)
    at tryOnImmediate (timers.js:554:5)
    at processImmediate [as _immediateCallback] (timers.js:533:5)

Desired behavior:

Run cypress as part of the testing stage in Jenkins pipeline.

  • Operating System: MacOS 10.12.6
  • Cypress Version: 1.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIGeneral issues involving running in a CI providerOS: mac

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions