Facing Issue to setup Jenkins Pipeline for Cypress Git Project

Please see below the error message which I am getting. Please suggest and let me know If u need any more information. Thank you.!

=====================================================

  • npx cypress@8.7.0 run --browser chrome --spec cypress/integration//.js
    It looks like this is your first time using Cypress: 8.7.0

[STARTED] Task without title.
[SUCCESS] Task without title.

Opening Cypress…
[439:0214/092913.843768:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[439:0214/092913.845438:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[439:0214/092913.845462:ERROR:bus.cc(392)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are “tcp” and on UNIX “unix”)
[592:0214/092913.860870:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is swiftshader
The plugins file is missing or invalid.

Your pluginsFile is set to /home/jenkins/workspace/***/***/cypress/plugins/index.js, but either the file is missing, it contains a syntax error, or threw an error when required. The pluginsFile must be a .js, .ts, or .coffee file.

Or you might have renamed the extension of your pluginsFile. If that’s the case, restart the test runner.

Please fix this, or set pluginsFile to false if a plugins file is not necessary for your project.

Error: Cannot find module ‘fs-extra’
Require stack:

  • /home/jenkins/workspace///cypress/plugins/index.js
  • /home/jenkins/.cache/Cypress/8.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js
  • /home/jenkins/.cache/Cypress/8.7.0/Cypress/resources/app/packages/server/lib/plugins/child/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15)
    at Module._load (internal/modules/cjs/loader.js:737:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:964:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (/home/jenkins/workspace///cypress/plugins/index.js:20:12)
    at Module._compile (internal/modules/cjs/loader.js:1083:30)
    at Object.Module._extensions…js (internal/modules/cjs/loader.js:1113:10)
    at Module.load (internal/modules/cjs/loader.js:940:32)
    at Module._load (internal/modules/cjs/loader.js:781:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:964:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at runPlugins (/home/jenkins/.cache/Cypress/8.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:175:15)
    at Object. (/home/jenkins/.cache/Cypress/8.7.0/Cypress/resources/app/packages/server/lib/plugins/child/index.js:8:25)
    at Module._compile (internal/modules/cjs/loader.js:1083:30)
    =============================================