This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -36,7 +36,7 @@ pipeline {
|
||||
cd "$WORKSPACE"
|
||||
|
||||
# 1) Arrêter l'ancienne instance de CE jar (et pas tout java)
|
||||
OLD_PIDS=$(pgrep -f "rock-paper-scissors" || true)
|
||||
OLD_PIDS=$(pgrep -f "rock-paper-scissors-0.0.1-SNAPSHOT.jar" || true)
|
||||
if [ -n "$OLD_PIDS" ]; then
|
||||
echo "Arrêt des anciennes instances: $OLD_PIDS"
|
||||
kill $OLD_PIDS || true
|
||||
|
||||
Reference in New Issue
Block a user