localhost-back/Jenkinsfile
nevermoregb 97da33d151
Some checks failed
LOCALNET-DEV/pipeline/head There was a failure building this commit
젠킨스 수정 2
2025-02-21 13:26:22 +09:00

27 lines
671 B
Groovy

pipeline {
agent any
tools {
gradle 'gradle8'
}
stages {
stage('Clean & Build') {
steps {
bat './gradlew clean build'
}
}
stage('Deploy') {
steps {
bat '''
copy /Y build\\libs\\*-plain.war C:\\localhost-tomcat\\apache-tomcat-10.1.36-windows-x64\\apache-tomcat-10.1.36\\webapps\\ROOT.war
cd C:\\localhost-tomcat\\apache-tomcat-10.1.36\\bin
call shutdown.bat
timeout /t 5 /nobreak
call startup.bat
'''
}
}
}
}