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

Adjusting a bigger change deploys v9...

parent 3cf985af
No related branches found
No related tags found
No related merge requests found
......@@ -62,18 +62,9 @@ pipeline {
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 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
# Use unzip -p to print the content directly
echo "Content of beds.html directly from JAR (using unzip -p):"
unzip -p build/libs/HealthCare-0.0.1-SNAPSHOT.jar BOOT-INF/classes/static/html/beds.html || echo "Failed to read beds.html from JAR using unzip!"
'''
echo "---------------------------------------------"
// --- END DEBUGGING ---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment