Explorar o código

Update 'Jenkinsfile'

관리자 hai 2 meses
pai
achega
bf8aa21cbf
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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') {