Skip to content

Commit 74fd7c7

Browse files
committed
jenkins-file-command-added
1 parent a0c65f3 commit 74fd7c7

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

Jenkinsfile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ pipeline {
99
// switch to the directory and run test
1010
dir('spring-petclinic/spring-petclinic-rest') {
1111
sh """
12-
# Install required dependencies
13-
sudo apt-get update && sudo apt-get install -y tar
1412
1513
# Download and install Keploy binary
1614
curl --silent -O -L https://keploy.io/install.sh && sudo bash install.sh
@@ -19,21 +17,13 @@ pipeline {
1917
which keploy
2018
2119
# Set up the environment (ensure docker is running)
22-
sudo systemctl start docker || true
2320
2421
# Print current directory for debugging
2522
pwd
2623
ls -la
2724
28-
# Run keploy test with proper volume mounts
29-
sudo keploy test -c 'docker-compose up' \
30-
--container-name 'javaApp' \
31-
-t 'test-set-0' \
32-
--build-delay 50 \
33-
--delay 20 \
34-
--debug \
35-
--path "\$(pwd)/keploy" \
36-
--config-path "\$(pwd)"
25+
# Run keploy test
26+
keploy test -c "java -jar target/spring-petclinic-rest-3.0.2.jar" --delay 20
3727
"""
3828
}
3929
}

0 commit comments

Comments
 (0)