Salesforce Deployment Software installation

sudo su -

yum install git 

you can skip the below because node is installed in sfdx package

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash

. ~/.nvm/nvm.sh

nvm install node

node -e "console.log('Running Node.js ' + process.version)"

Please don't run npm install --global sfdx-cli in AWS Ec2 machine, when you run this command, the ec2-machines hangs and won't respond. reboot the ec2 instance and run the below commands to install sfdx manually.


wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz

mkdir /opt/sfdx

tar xJf sfdx-linux-x64.tar.xz -C /opt/sfdx --strip-components 1

export PATH=/opt/sfdx/bin:$PATH

if you have to edit the PATH, then use set PATH="path"

Go jenkins plugins and install custom tool plugin

Go to global tool configuration 

Under Custom tool

Name: toolbelt
exported path: /usr/bin/sfdx/bin
Installation directory /usr/bin/sfdx/bin/sfdx


The right way of installing 3rd party tools, is putting in /opt/ directory and linking them to /bin/ directory where all executables exit

ln -s /opt/sfdx/bin/sfdx /usr/local/bin/sfdx


If the custom tool is not working, remove it and install directly on slave machine




Comments

Popular posts from this blog

Jenkins for salesforce on RHEL OS or CentOS and configuring jenkins slave

Jenkins install for salesforce