관리자 пре 2 месеци
родитељ
комит
bf8aa21cbf
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -2,6 +2,7 @@ pipeline {
     agent { label 'windows-host' }
     agent { label 'windows-host' }
     environment {
     environment {
         DOTNET_CLI_TELEMETRY_OPTOUT = '1'
         DOTNET_CLI_TELEMETRY_OPTOUT = '1'
+		JAVA_TOOL_OPTIONS = '-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8'
     }
     }
     stages {
     stages {
         stage('Checkout') {
         stage('Checkout') {
@@ -11,8 +12,8 @@ pipeline {
         }
         }
         stage('Build') {
         stage('Build') {
             steps {
             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') {
         stage('Stop Services') {