Skip to content

Commit

Permalink
- fixed jenkins file path
Browse files Browse the repository at this point in the history
  • Loading branch information
luisvent committed Mar 21, 2024
1 parent 1efeea9 commit 9ee8138
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ pipeline {
bat """
@echo off
REM Check if the service is running on port 3900
netstat -ano | findstr ":3900.*LISTENING" >nul
REM Check if the service is running on port 3930
netstat -ano | findstr ":3930.*LISTENING" >nul
if %errorlevel% equ 0 (
REM If service is running, find its PID and kill the process
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":3900.*LISTENING"') do (
echo Service running on port 3900 with PID: %%a
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":3930.*LISTENING"') do (
echo Service running on port 3930 with PID: %%a
taskkill /F /PID %%a >nul
echo Service on port 3900 has been stopped.
echo Service on port 3930 has been stopped.
)
) else (
echo No service found running on port 3900.
echo No service found running on port 3930.
)
REM Exit with success code 0
Expand All @@ -53,7 +53,7 @@ pipeline {
bat """
echo "doing delivery stuff.."
cd docs
xcopy *.* "C:\\Sites\\chatai_web" /s /e /y
xcopy *.* "C:\\Sites\\chat_ai_web" /s /e /y
"""
}
}
Expand All @@ -63,7 +63,7 @@ pipeline {
bat """
echo "doing delivery stuff.."
cd ..
xcopy *.* "C:\\Sites\\chatai_api" /s /e /y
xcopy *.* "C:\\Sites\\chat_ai_api" /s /e /y
"""
}
}
Expand Down

0 comments on commit 9ee8138

Please sign in to comment.