Explicitely use java from configured jdk
This commit is contained in:
5
jenkinsfiles/APIFootballUpdater/Jenkinsfile
vendored
5
jenkinsfiles/APIFootballUpdater/Jenkinsfile
vendored
@@ -20,8 +20,9 @@ pipeline {
|
||||
"JAVA_HOME=${jdkPath}/jdk-22.0.2"
|
||||
]) {
|
||||
try {
|
||||
sh "java -jar build/libs/tlw-database-tool-1.0.jar --mode APIFootballUpdater --season ${season} --league 1 --configFile Tippliga 2>&1 >> log.txt"
|
||||
sh "java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchesListGistUpdater --season ${season} --league 1 --configFile Tippliga 2>&1 >> log.txt"
|
||||
sh "java --version"
|
||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode APIFootballUpdater --season ${season} --league 1 --configFile Tippliga 2>&1 >> log.txt"
|
||||
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode MatchesListGistUpdater --season ${season} --league 1 --configFile Tippliga 2>&1 >> log.txt"
|
||||
} catch (Exception e) {
|
||||
telegramSendManual("TLW-Database-Tool crashed!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user