Fix jenkinsfiles so that errors are sent to telegram
This commit is contained in:
3
jenkinsfiles/WhatsAppReminder/Jenkinsfile
vendored
3
jenkinsfiles/WhatsAppReminder/Jenkinsfile
vendored
@@ -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!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user