@@ -5,6 +5,12 @@ pipeline {
JAVA_TOOL_OPTIONS = '-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8'
}
stages {
+ stage('Clean') {
+ steps {
+ bat 'if exist publish rmdir /s /q publish'
+ }
+
stage('Build') {
steps {
bat 'chcp 65001 && dotnet publish Web.Api/Web.Api.csproj -c Release -o publish\\api'