Warning Error when running nodejs test with Dockers in Jenkins

Thursday, July 19, 2018
Avatar

While trying to run my test in Jenkins with the Jenkinsfile where my pipeline is defined using docker compose file, the test returned an error as contained below:

warning Error running install script for optional dependency: "/tests/node_modules/snappy: Command failed. Exit code: 1 Selenium Command: sh Arguments: -c ./node_modules/.bin/node-gyp rebuild Directory: /tests/node_modules/snappy Output: gyp info it worked if it ends with ok gyp info using node-gyp@3.4.0 gyp info using node@9.11.1 | linux | x64 gyp http GET https://nodejs.org/download/release/v9.11.1/node-v9.11.1-headers.tar.gz gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: connect ETIMEDOUT xxxx.xxxx.xxxxx gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1174:14) gyp ERR! System Linux xxxxxxxxx.el7.x86_64 gyp ERR! command \"/usr/local/bin/node\" \"/tests/node_modules/snappy/node_modules/.bin/node-gyp\" \"rebuild\" gyp ERR! cwd /tests/node_modules/snappy gyp ERR! node -v v9.11.1 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok"

The test failed because of this. Could someone please help me out on this? It appears I am having a conflicting node versions here, how do I resolve this?

1 Replies
Thursday, July 19, 2018
Avatar
inflectra.jimx
re: soujanyabargavi Thursday, July 19, 2018

Hi

I don't believe this relates to any of our products I'm afraid?

If so, I'd recommend logging a help desk ticket with us.

Regards

Jim

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Thursday, July 19, 2018
  • Last Reply: Saturday, August 8, 2020
  • Replies: 1
  • Views: 14220