Issue while installing cypress binary in Jenkins run #28151
Labels
stale
no activity on this issue for a long period
topic: installation
Issue during installation or downloading Cypress
Current behavior
Hi Team,
I'm trying to install cypress during the rum time in Jenkins run using below shell commands but getting error
stages {
stage('Install dependencies') {
steps {
script {
sh ''' set -x
wget https://dependencies.openet.com/artifactory/nodejs-releases-remote/latest-v16.x/node-v16.20.2-linux-x64.tar.gz
tar xvf node-v16.20.2-linux-x64.tar.gz
'''
In Jenkins run when it is trying run the highlighted command for installing cypress it is throwing below error
20:52:11 /home/centos/workspace/CF5G-14616-staticPCCrulecreation@tmp/durable-e266d6c7/script.sh: line 13: /home/centos/.cache/Cypress: No such file or directory
Can someone please suggest how to install cypress during Jenkins run at build time
Even i tried option of adding command
npm install --prefix ./pcf-gui-automation/configuration/src/test/cypress cypress --save-dev
npm cache add ./pcf-gui-automation/configuration/src/test/cypress/node_modules/cypress
to install cypress but getting error saying
15:38:26 + npm cache add /home/centos/.cache/Cypress
15:38:26 npm WARN tarball tarball data for file:/home/centos/.cache/Cypress (null) seems to be corrupted. Trying again.
15:38:26 npm WARN tarball tarball data for file:/home/centos/.cache/Cypress (null) seems to be corrupted. Trying again.
15:38:26 npm ERR! code ENOENT
15:38:26 npm ERR! syscall open
15:38:26 npm ERR! path /home/centos/.cache/Cypress/package.json
15:38:26 npm ERR! errno -2
15:38:26 npm ERR! enoent ENOENT: no such file or directory, open '/home/centos/.cache/Cypress/package.json'
15:38:26 npm ERR! enoent This is related to npm not being able to find a file.
15:38:26 npm ERR! enoent
Debug logs
No response
Cypress Version
13.3.3
Node version
16.20.2
Package Manager
npm
Package Manager Version
8.x
Operating system
Linux
Operating System Version
Centos 7
Other
No response
The text was updated successfully, but these errors were encountered: