diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..f41ac30 --- /dev/null +++ b/Jenkinsfile @@ -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 + ''' + } + } + } +}