diff --git a/Jenkinsfile b/Jenkinsfile index 907acdde..22d52cef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline { lock('katalon-docker-images') { sh ''' chmod u+x ./build/*.sh - ./build/clean.sh + ./build/clean.sh $KS_VERSION ./build/build.sh $KS_VERSION ./build/tag.sh $KS_VERSION diff --git a/build/clean.sh b/build/clean.sh index 77901943..8699c0bb 100755 --- a/build/clean.sh +++ b/build/clean.sh @@ -2,4 +2,6 @@ set -xe -docker rmi katalonstudio/katalon:test || echo 'No image to delete.' \ No newline at end of file +ksversion=$1 + +docker rmi katalonstudio/katalon:$ksversion || echo 'No image to delete.' \ No newline at end of file diff --git a/test/project/run_chrome.bat b/test/project/run_chrome.bat index 4dc368e0..b58759b1 100644 --- a/test/project/run_chrome.bat +++ b/test/project/run_chrome.bat @@ -6,4 +6,4 @@ set currentdir=%cd::\=/% set currentdir=%currentdir:\=/% -docker run -t --rm -v "/%currentdir%:/tmp/source" -w /tmp/source katalonstudio/katalon:test katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest" +docker run -t --rm -v "/%currentdir%:/tmp/source" -w /tmp/source katalonstudio/katalon:%1 katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/TS_RegressionTest"