Always write out last run versions
The 'old' way would run the failing run's version over and over until it was fixed. I switched it to always increment the version for the next run, so we get a clearer picture if it is only one version of FP that is causing failures.
Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>
diff --git a/mustella/jenkins.sh b/mustella/jenkins.sh
index 7757ac5..209bef7 100755
--- a/mustella/jenkins.sh
+++ b/mustella/jenkins.sh
@@ -275,13 +275,15 @@
+# write 'used' values to 'versions.txt' to allow
+cat > $VERSIONS_FILE <<END
+FLASH_VERSION=$FLASH_VERSION
+AIR_VERSION=$AIR_VERSION
+END
+
+
+
if ! $SUCCESS
then
exit 1
-else
- # write 'used' values to 'versions' file upon success
- cat > $VERSIONS_FILE <<END
- FLASH_VERSION=$FLASH_VERSION
- AIR_VERSION=$AIR_VERSION
-END
fi