This commit is contained in:
parent
873910358c
commit
dcb323cb40
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -14,6 +14,7 @@ pipeline {
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
bat '''
|
||||
echo "checking Tomcat is running"
|
||||
netstat -ano | find "8005" > nul
|
||||
|
||||
if errorlevel 1 (
|
||||
@ -34,7 +35,8 @@ pipeline {
|
||||
ping -n 5 127.0.0.1 > nul
|
||||
|
||||
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
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user