瀏覽代碼

Update 'Jenkinsfile'

관리자 2 月之前
父節點
當前提交
bf8aa21cbf
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -2,6 +2,7 @@ pipeline {
     agent { label 'windows-host' }
     environment {
         DOTNET_CLI_TELEMETRY_OPTOUT = '1'
+		JAVA_TOOL_OPTIONS = '-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8'
     }
     stages {
         stage('Checkout') {
@@ -11,8 +12,8 @@ pipeline {
         }
         stage('Build') {
             steps {
-                bat 'dotnet publish Web.Api -c Release -o publish\\api'
-                bat 'dotnet publish Admin -c Release -o publish\\admin'
+                bat 'dotnet publish Web.Api -c Release -r win-x64 -o publish\\api'
+                bat 'dotnet publish Admin -c Release -r win-x64 -o publish\\admin'
             }
         }
         stage('Stop Services') {