Skip to content
Snippets Groups Projects
Commit 2025331a authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6892 set ENV_NODE to production

parent 451c8e06
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ pipeline { ...@@ -43,7 +43,7 @@ pipeline {
sh 'npm cache verify' sh 'npm cache verify'
sh 'npm install' sh 'npm install'
sh 'npm run build' sh 'NODE_ENV=production npm run build'
//sh 'npm run test' //sh 'npm run test'
if (isMasterBranch()) { if (isMasterBranch()) {
...@@ -282,7 +282,7 @@ Void setNewTestVersion() { ...@@ -282,7 +282,7 @@ Void setNewTestVersion() {
Void setNewGitopsVersion(String environment) { Void setNewGitopsVersion(String environment) {
dir("gitops") { 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 def envVersions = readYaml file: envFile
...@@ -293,7 +293,7 @@ Void setNewGitopsVersion(String environment) { ...@@ -293,7 +293,7 @@ Void setNewGitopsVersion(String environment) {
if (hasValuesFileChanged(environment)) { if (hasValuesFileChanged(environment)) {
sh "git add ${envFile}" 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() { ...@@ -306,7 +306,7 @@ String getPackagejsonVersion() {
} }
Boolean hasValuesFileChanged(String environment) { 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() { Boolean isReleaseBranch() {
......
{ {
"name": "ozg-frontend-client", "name": "ozg-frontend-client",
"version": "0.3.1", "version": "1.4.0-SNAPSHOT",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ozg-frontend-client", "name": "ozg-frontend-client",
"version": "0.3.1", "version": "1.4.0-SNAPSHOT",
"dependencies": { "dependencies": {
"axios": "^1.5.1", "axios": "^1.5.1",
"react": "^18.2.0", "react": "^18.2.0",
...@@ -47,7 +47,7 @@ module.exports = { ...@@ -47,7 +47,7 @@ module.exports = {
publicPath: "/" publicPath: "/"
}, },
mode: prod ? "production" : "development", mode: prod ? "production" : "development",
devtool: prod ? undefined : "eval-source-map", devtool: prod ? "source-map" : "eval-source-map",
module: { module: {
rules: [ rules: [
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment