9
All checks were successful
LOCALNET-DEV/pipeline/head This commit looks good

This commit is contained in:
nevermoregb 2025-02-21 23:53:55 +09:00
parent 873910358c
commit dcb323cb40

4
Jenkinsfile vendored
View File

@ -14,6 +14,7 @@ pipeline {
stage('Deploy') { stage('Deploy') {
steps { steps {
bat ''' bat '''
echo "checking Tomcat is running"
netstat -ano | find "8005" > nul netstat -ano | find "8005" > nul
if errorlevel 1 ( if errorlevel 1 (
@ -34,7 +35,8 @@ pipeline {
ping -n 5 127.0.0.1 > nul ping -n 5 127.0.0.1 > nul
echo "start" echo "start"
start /B cmd /c "C:\\localhost-tomcat\\apache-tomcat-10.1.36-windows-x64\\apache-tomcat-10.1.36\\bin\\startup.bat" cd C:\\localhost-tomcat\\apache-tomcat-10.1.36-windows-x64\\apache-tomcat-10.1.36\\bin
call startup.bat
''' '''
} }
} }