From 2025331af073ad83190c9b40a31d4ac0f4851c4e Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Thu, 17 Oct 2024 13:04:28 +0200
Subject: [PATCH] OZG-6892 set ENV_NODE to production

---
 Jenkinsfile              | 8 ++++----
 client/package-lock.json | 4 ++--
 client/webpack.config.js | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 3e997ef..a97f069 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -43,7 +43,7 @@ pipeline {
 
 						sh 'npm cache verify'
                         sh 'npm install'
-                        sh 'npm run build'
+                        sh 'NODE_ENV=production npm run build'
                         //sh 'npm run test'
                                                            
 	                    if (isMasterBranch()) {
@@ -282,7 +282,7 @@ Void setNewTestVersion() {
 
 Void setNewGitopsVersion(String environment) {
     dir("gitops") {
-        def envFile = "${environment}/application/values/antragraum-client-values.yaml"
+        def envFile = "${environment}/application/values/antragsraum-client-values.yaml"
 
         def envVersions = readYaml file: envFile
 
@@ -293,7 +293,7 @@ Void setNewGitopsVersion(String environment) {
 
         if (hasValuesFileChanged(environment)) {
             sh "git add ${envFile}"
-            sh "git commit -m 'jenkins rollout ${environment} antragraum-client version ${IMAGE_TAG}'"
+            sh "git commit -m 'jenkins rollout ${environment} antragsraum-client version ${IMAGE_TAG}'"
         }
     }
 }
@@ -306,7 +306,7 @@ String getPackagejsonVersion() {
 }
 
 Boolean hasValuesFileChanged(String environment) {
-    return sh (script: "git status | grep '${environment}/application/values/antragraum-client-values.yaml'", returnStatus: true) == env.SH_SUCCESS_STATUS_CODE as Integer
+    return sh (script: "git status | grep '${environment}/application/values/antragsraum-client-values.yaml'", returnStatus: true) == env.SH_SUCCESS_STATUS_CODE as Integer
 }
 
 Boolean isReleaseBranch() {
diff --git a/client/package-lock.json b/client/package-lock.json
index 8b0465c..a65cf29 100644
--- a/client/package-lock.json
+++ b/client/package-lock.json
@@ -1,12 +1,12 @@
 {
     "name": "ozg-frontend-client",
-    "version": "0.3.1",
+    "version": "1.4.0-SNAPSHOT",
     "lockfileVersion": 2,
     "requires": true,
     "packages": {
         "": {
             "name": "ozg-frontend-client",
-            "version": "0.3.1",
+            "version": "1.4.0-SNAPSHOT",
             "dependencies": {
                 "axios": "^1.5.1",
                 "react": "^18.2.0",
diff --git a/client/webpack.config.js b/client/webpack.config.js
index 425e4d8..0a56aee 100644
--- a/client/webpack.config.js
+++ b/client/webpack.config.js
@@ -47,7 +47,7 @@ module.exports = {
     publicPath: "/"
   },
   mode: prod ? "production" : "development",
-  devtool: prod ? undefined : "eval-source-map",
+  devtool: prod ? "source-map" : "eval-source-map",
   module: {
     rules: [
       {
-- 
GitLab