젠킨스 설정 추가
Some checks failed
LOCALNET-DEV/pipeline/head There was a failure building this commit

This commit is contained in:
nevermoregb 2025-02-21 12:56:51 +09:00
parent 8e64369b77
commit 041a726dc1

23
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,23 @@
pipeline {
agent any
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
'''
}
}
}
}