From cfcfa489b4150438799aed439cb2b2f5003cc3e4 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 5 Feb 2024 11:38:16 +0100 Subject: [PATCH] ci: refs#6706 Jenkinsfile & deps fixes --- Jenkinsfile | 8 ++++++++ package.json | 1 + pnpm-lock.yaml | 3 +++ 3 files changed, 12 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ebe46f750..bd19e8e15 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -92,6 +92,10 @@ pipeline { expression { RUN_BUILD } } steps { + script { + def packageJson = readJSON file: 'package.json' + env.VERSION = packageJson.version + } sh 'docker-compose build back' } } @@ -126,6 +130,10 @@ pipeline { expression { RUN_BUILD } } steps { + script { + def packageJson = readJSON file: 'package.json' + env.VERSION = packageJson.version + } sh 'gulp build' sh 'docker-compose build front' } diff --git a/package.json b/package.json index 7c6b0853b..04c0e6d04 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "jasmine-spec-reporter": "^7.0.0", "jest": "^26.0.1", "jest-junit": "^8.0.0", + "js-yaml": "^4.1.0", "json-loader": "^0.5.7", "merge-stream": "^1.0.1", "minimist": "^1.2.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 81c7e0b94..2df0ae49c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -220,6 +220,9 @@ devDependencies: jest-junit: specifier: ^8.0.0 version: 8.0.0 + js-yaml: + specifier: ^4.1.0 + version: 4.1.0 json-loader: specifier: ^0.5.7 version: 0.5.7