Skip to content
Snippets Groups Projects
Commit 3cf985af authored by Burhan Akbar's avatar Burhan Akbar
Browse files

Adjusting a bigger change deploys v8...

parent 56af1bda
No related branches found
No related tags found
No related merge requests found
......@@ -61,11 +61,18 @@ pipeline {
sh '''
echo "Listing JAR contents for beds.html:"
jar tf build/libs/HealthCare-0.0.1-SNAPSHOT.jar | grep beds.html || echo "beds.html not found in JAR!"
echo "Extracting beds.html from JAR:"
mkdir -p /tmp/jenkins-jar-extract/BOOT-INF/classes/static/html
jar xf build/libs/HealthCare-0.0.1-SNAPSHOT.jar -C /tmp/jenkins-jar-extract BOOT-INF/classes/static/html/beds.html || echo "Failed to extract beds.html from JAR!"
echo "Extracting ENTIRE JAR to /tmp/jenkins-jar-extract..."
rm -rf /tmp/jenkins-jar-extract # Clean up previous attempt if any
mkdir -p /tmp/jenkins-jar-extract
# Extract the whole JAR into the temp directory
jar xf build/libs/HealthCare-0.0.1-SNAPSHOT.jar -C /tmp/jenkins-jar-extract || echo "Failed to extract ENTIRE JAR!"
echo "Content of beds.html extracted from JAR:"
# Cat the file from its expected location within the extracted structure
cat /tmp/jenkins-jar-extract/BOOT-INF/classes/static/html/beds.html || echo "Failed to cat extracted beds.html!"
# Clean up
rm -rf /tmp/jenkins-jar-extract
'''
echo "---------------------------------------------"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment