Fixed Jenkinsfile

This commit is contained in:
Robert Vokac 2023-09-28 18:09:17 +02:00
parent 31d8a35ff5
commit f056e61be8
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055
2 changed files with 10 additions and 2 deletions

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)

View File

@ -68,6 +68,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifest>