Hi,
I did search out the old post but those did not solve my issue.
I have my script running in my mac and then I pushed to Github and run the scripts under Katalon run time engine.
How can I configure the path variables?
Jenkins build command:
#!/bin/bash -e
comment out everything for now
: <<‘END’
END
backup chromedriver
latest_chrome=‘https://chromedriver.storage.googleapis.com/90.0.4430.24/chromedriver_linux64.zip’
#latest_chrome=‘https://chromedriver.storage.googleapis.com/91.0.4472.19/chromedriver_linux64.zip’
current_chrome_home="$JENKINS_HOME/.katalon/7.9.0/Katalon_Studio_Engine_Linux_64-7.9.0/configuration/resources/drivers/chromedriver_linux64"
current_chrome="$current_chrome_home/chromedriver"
chrome_driver_tmp="$JENKINS_HOME/tmp/chromedriver/new"
chrome_driver_tmp_bak="$JENKINS_HOME/tmp/chromedriver/bak"
echo $JENKINS_HOME
mkdir -p “$chrome_driver_tmp”
mkdir -p “$chrome_driver_tmp_bak”
cd “$chrome_driver_tmp”
rm -rf $chrome_driver_tmp/*
wget -P “$chrome_driver_tmp/” $latest_chrome
unzip chromedriver_linux64.zip
new_chrome_md5=md5sum $chrome_driver_tmp/chromedriver
cur_chrome_md5=md5sum $current_chrome
if new chrome is not same as old chrome, then replace with latest
if [[ $new_chrome_md5 != $cur_chrome_md5 ]];then
# backup old chrome
cur_date=date +%Y-%m-%d-%H%M%S
/usr/bin/cp -f “$current_chrome” “$chrome_driver_tmp_bak/chromedriver.bak.$cur_date”
# replace with latest
/usr/bin/cp -f "$chrome_driver_tmp/chromedriver" "$current_chrome"
fi
Command argument:
-noSplash -runMode=console -projectPath="/var/lib/jenkins/workspace/katalon-test" -retry=0 -testSuiteCollectionPath=“Test Suites/Local Testing Collection” -executionProfile=“default” -browserType=“Chrome” --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -apiKey=7d3b7eba-6481-4502-b27b-7805d75834ca -orgID=158236
All the old posts are talking about how to set up the Path, but not for how to configure the setting under Jenkins.
Anyone know how to solve this?