Skip to content

Commit

Permalink
Merge pull request #302 from drewbrokke/BLADE-729-TASK-v3-publish-dif…
Browse files Browse the repository at this point in the history
…f-loudly

BLADE 729 TASK v3 publish diff loudly
  • Loading branch information
drewbrokke committed Aug 24, 2023
2 parents 72fa2a5 + 844e83e commit f9dd908
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,14 @@ fi

unzip -p cli/build/libs/blade.jar "$embeddedMavenProfileJar" > /tmp/$timestamp/myExtractedMavenProfile.jar

diff /tmp/$timestamp/myExtractedMavenProfile.jar /tmp/$timestamp/maven_profile.jar
unzip -q /tmp/$timestamp/myExtractedMavenProfile.jar -d /tmp/$timestamp/localMavenJarExploded
unzip -q /tmp/$timestamp/maven_profile.jar -d /tmp/$timestamp/remoteMavenJarExploded

echo "Doing a more detailed diff..."
diff -r /tmp/$timestamp/localMavenJarExploded /tmp/$timestamp/remoteMavenJarExploded

echo "Doing the standard jar diff..."
diff -s /tmp/$timestamp/myExtractedMavenProfile.jar /tmp/$timestamp/maven_profile.jar

if [ "$?" != "0" ]; then
echo Failed local blade.jar diff with downloaded maven profile jar. The embedded maven profile jar and nexus maven profile jar are not identical
Expand Down Expand Up @@ -221,7 +228,7 @@ fi

unzip -p /tmp/$timestamp/blade.jar "$embeddedMavenProfileJar" > /tmp/$timestamp/myExtractedMavenProfile.jar

diff /tmp/$timestamp/myExtractedMavenProfile.jar /tmp/$timestamp/maven_profile.jar
diff -s /tmp/$timestamp/myExtractedMavenProfile.jar /tmp/$timestamp/maven_profile.jar

if [ "$?" != "0" ]; then
echo Failed local blade.jar diff with downloaded maven profile jar. The embedded maven profile jar and nexus maven profile jar are not identical
Expand Down

0 comments on commit f9dd908

Please sign in to comment.