Fixed Jenkinsfile

This commit is contained in:
Robert Vokac 2023-09-28 18:04:50 +02:00
parent 80118c15d0
commit 74a5c4ca3d
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

11
Jenkinsfile vendored
View File

@ -6,7 +6,7 @@ Requirements:
Maven is Installed
Java 21 is installed - variable JAVA_HOME_21 is set
Java 21 is installed - variable JAVA_21_HOME is set
*/
{
@ -25,7 +25,14 @@ Java 21 is installed - variable JAVA_HOME_21 is set
#!/bin/bash
echo JOB_NAME=$JOB_NAME
export JAVA_HOME=$JAVA_HOME_21
if [ -z "$JAVA_21_HOME" ]
then
echo "KO : Variable JAVA_21_HOME is empty. You fix this issue by adding this variable to configuration of Jenkins."
exit 1
else
echo "OK : Variable JAVA_21_HOME is NOT empty"
fi
export JAVA_HOME=$JAVA_21_HOME
case $BRANCH_NAME in
master | deploy_prod)