localhost-back/Jenkinsfile
nevermoregb bebc1d0cd7
All checks were successful
LOCALNET-DEV/pipeline/head This commit looks good
젠킨스 수정 6
2025-02-21 14:03:20 +09:00

28 lines
756 B
Groovy

pipeline {
agent any
tools {
gradle 'gradle8'
}
stages {
stage('Clean & Build') {
steps {
bat './gradlew clean build -x test'
}
}
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
timeout /t 5 /nobreak
cd C:\\localhost-tomcat\\apache-tomcat-10.1.36-windows-x64\\apache-tomcat-10.1.36\\bin
call shutdown.bat
timeout /t 5 /nobreak
call startup.bat
'''
}
}
}
}