update common jenkins scripts
Some checks failed
test/jenkins-scripts/pipeline/head There was a failure building this commit
gitea-bro-js/jenkins-scripts/pipeline/head There was a failure building this commit

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-03-29 10:17:42 +03:00
parent c12b37b6f9
commit 3f690a6b74

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'
} }
} }