File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,13 @@ pipeline {
55 steps {
66 // Clone the git repository
77 git branch : ' chore/Integrate-github-cicd' , url : ' https://github.com/Achanandhi-M/samples-java.git'
8+
89 // switch to the directory and run test
910 dir(' spring-petclinic/spring-petclinic-rest' ) {
1011 sh """
12+ # Install required dependencies
13+ sudo apt-get update && sudo apt-get install -y tar
14+
1115 # Download and install Keploy binary
1216 curl --silent -O -L https://keploy.io/install.sh && sudo bash install.sh
1317
@@ -16,10 +20,20 @@ pipeline {
1620
1721 # Set up the environment (ensure docker is running)
1822 sudo systemctl start docker || true
19-
20- # Run keploy test
21- # Using single quotes for the command to avoid escaping issues
22- sudo keploy test -c 'docker-compose up' --container-name 'javaApp' -t 'test-set-0' --build-delay 50 --delay 20 --debug
23+
24+ # Print current directory for debugging
25+ pwd
26+ ls -la
27+
28+ # Run keploy test with proper volume mounts
29+ sudo keploy test -c 'docker-compose up' \
30+ --container-name 'javaApp' \
31+ --test-set 'test-set-0' \
32+ --build-delay 50 \
33+ --delay 20 \
34+ --debug \
35+ --path "\$ (pwd)/keploy" \
36+ --config-path "\$ (pwd)"
2337 """
2438 }
2539 }
You can’t perform that action at this time.
0 commit comments