Fix jenkinsfiles so that errors are sent to telegram

This commit is contained in:
2025-04-13 18:30:11 +02:00
parent f0c75e9e2b
commit dd62417977
6 changed files with 25 additions and 25 deletions

View File

@@ -23,8 +23,7 @@ pipeline {
"TLW_WHATSAPP_HOST=https://tlw-whatsapp.codeam.io"
]) {
try {
sh "ls build/libs"
sh "$JAVA_HOME/bin/java -jar build/libs/tlw-database-tool-1.0.jar --mode WhatsAppNotifier --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 WhatsAppNotifier --season ${season} --league 1 --configFile Tippliga >> log.txt 2>&1"
} catch (Exception e) {
telegramSendManual("TLW-Database-Tool crashed!")
}