summaryrefslogtreecommitdiffstats
path: root/jjb/scripts/maven_push_functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/scripts/maven_push_functions.sh')
-rw-r--r--jjb/scripts/maven_push_functions.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/jjb/scripts/maven_push_functions.sh b/jjb/scripts/maven_push_functions.sh
index 2d6ae791f..ad6248cf7 100644
--- a/jjb/scripts/maven_push_functions.sh
+++ b/jjb/scripts/maven_push_functions.sh
@@ -24,12 +24,16 @@ function push_file ()
version=$4
artifactId=$5
file_type=$6
- classifier=$7
- if [ "$classifier" ]; then
+ if [ -n "$7" ]; then
d_classifier="-Dclassifier=$7"
fi
+ if [ ! -f "$push_file" ] ; then
+ echo "file for deployment does not exist: $push_file"
+ exit 1;
+ fi
+
# Disable checks for doublequote to prevent glob / splitting
# shellcheck disable=SC2086
$MVN org.apache.maven.plugins:maven-deploy-plugin:deploy-file \