Update maven-build.yml

This commit is contained in:
Aiman Zafar 2024-11-26 15:33:40 +05:00 committed by GitHub
parent 0531f28280
commit 6e297619ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,12 +83,12 @@ jobs:
ls -al /home/aiman/Documents/CI-CD/spring-petclinic/actions-runner/_work/spring-petclinic/spring-petclinic/target/ ls -al /home/aiman/Documents/CI-CD/spring-petclinic/actions-runner/_work/spring-petclinic/spring-petclinic/target/
# Check if the JAR file exists and display a message if not # Check if the JAR file exists and display a message if not
JAR_PATH="/home/aiman/Documents/CI-CD/spring-petclinic/actions-runner/_work/spring-petclinic/spring-petclinic/target/spring-petclinic-3.3.0-SNAPSHOT.jar" JAR_PATH="/home/aiman/Documents/CI-CD/spring-petclinic/target/spring-petclinic-3.3.0-SNAPSHOT.jar"
if [ ! -f "$JAR_PATH" ]; then if [ ! -f "$JAR_PATH" ]; then
echo "JAR file not found at $JAR_PATH" echo "JAR file not found at $JAR_PATH"
exit 1 exit 1
else else
echo "JAR file found at $JAR_PATH" echo "JAR file found at $JAR_PATH"
fi fi
- name: Setup SSH - name: Setup SSH