From 34d2889c1d3016307d1fd16095100ed01eadd66b Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Wed, 16 Oct 2024 11:20:20 +0300 Subject: [PATCH] fix --- Jenkinsfile | 14 ++++---------- package.json | 3 +-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f680c4..b597aed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent { docker { - image 'node:18' + image 'node:20' } } @@ -10,7 +10,7 @@ pipeline { steps { sh 'node -v' sh 'npm -v' - sh 'npm install' + sh 'npm ci' } } @@ -22,21 +22,15 @@ pipeline { stage('test') { steps { - sh 'npm run test:start' + sh 'npm run test' } } stage('archiving') { + steps { script { archiveArtifacts artifacts: 'coverage/*/**' } - } - - stage('clean-all') { - steps { - sh 'rm -rf .[!.]*' - sh 'rm -rf ./*' - sh 'ls -a' } } } diff --git a/package.json b/package.json index 68c521e..a934fba 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,7 @@ "redeploy": "npm run deploy:d:stop && npm run deploy:d:build && npm run deploy:d:up", "eslint": "npx eslint ./server", "eslint:fix": "npx eslint ./server --fix", - "test": "jest", - "test:start": "start-server-and-test up:prod 8044 test" + "test": "jest" }, "repository": { "type": "git",