- A Jenkins server
- A EC2 instance (Application server) and deploy node.js
-
Enable nodejs packages on Linux server
curl -sL https://rpm.nodesource.com/setup_15.x | bash -
-
install development tools.
yum groupinstall 'Development Tools'
-
Install nodejs
yum -y install nodejs
Setup Jenkins job
Github URL: https://github.com/ravdy/nodejs.git
Using simple "hello world" application from the nodejs.org website
- Create the new FreeStyle Project
Git URL - https://github.com/ravdy/nodejs.git
BUILD --> Execute Shell npm install
npm install
tar czf easyio.tar-$BUILD_NUMBER.gz node_modules main.js package.json public LICENSE