From 5523037bfe0173b60030212e292ad8fdd50315ed Mon Sep 17 00:00:00 2001 From: me Date: Tue, 27 Jan 2026 14:21:45 +0300 Subject: [PATCH] upd --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c8a0c21..60133b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,18 +42,18 @@ pipeline { echo 'Restarting bot...' sh ''' # Kill existing bot process - pkill -f "python.*bot.py" || true + pkill -f "python.*main.py" || true # Wait a moment sleep 2 # Start bot in background cd ${BOT_DIR} - nohup ${VENV_DIR}/bin/python bot.py > ${BOT_DIR}/bot.log 2>&1 & + nohup ${VENV_DIR}/bin/python main.py > ${BOT_DIR}/bot.log 2>&1 & # Verify bot started sleep 3 - if pgrep -f "python.*bot.py" > /dev/null; then + if pgrep -f "python.*main.py" > /dev/null; then echo "Bot started successfully!" else echo "Failed to start bot. Check logs at ${BOT_DIR}/bot.log"