Merge remote-tracking branch 'origin/master'

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-04-10 00:40:28 +03:00
commit a3b99ccd20

14
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
pipeline { pipeline {
agent { agent {
docker { docker {
image 'node:14' image 'node:18'
} }
} }
@ -10,19 +10,25 @@ pipeline {
steps { steps {
sh 'node -v' sh 'node -v'
sh 'npm -v' sh 'npm -v'
sh 'npm install' sh 'npm ci'
} }
} }
stage('eslint') { stage('eslint') {
steps { steps {
sh 'npm run eslint' sh 'npm run eslint || npm run lint'
}
}
stage('test') {
steps {
sh 'npm t'
} }
} }
stage('build') { stage('build') {
steps { steps {
sh 'npm run build' sh 'npm run build:prod'
} }
} }