This commit is contained in:
Zohar 2024-04-08 22:03:35 -04:00
parent e6685c4dc8
commit 2932b53ee5
2 changed files with 3 additions and 2 deletions

View file

@ -45,8 +45,7 @@ pipeline {
}
stage("Deploy"){
steps {
sh 'nohup java -jar target/*.jar &'
sh 'disown'
sh 'runbg.sh'
}
}
}

2
runbg.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
nohup java -jar target/*.jar > output.log 2>&1 &