fixed
Some checks failed
gitea_dndsources/schedulord-frontend/pipeline/head There was a failure building this commit

This commit is contained in:
Jesse James Isler 2022-06-09 11:12:37 +02:00
parent 81e3310eef
commit 52d08e5326

40
Jenkinsfile vendored
View File

@ -16,24 +16,30 @@ pipeline {
} }
stage('Test') { stage('Test') {
agent { stage('Static code analysis') {
docker { agent {
image 'node:lts-bullseye-slim' docker {
args '-p 3000:3000' image 'node:lts-bullseye-slim'
} args '-p 3000:3000'
} }
parallel {
stage('Static code analysis') {
steps {
unstash 'node_modules'
sh 'npm run-script lint'
}
} }
stage('Unit tests') { steps {
steps { unstash 'node_modules'
unstash 'node_modules' sh 'npm run-script lint'
sh 'npm run-script test' stash includes: 'node_modules/', name: 'node_modules'
} }
}
stage('Unit tests') {
agent {
docker {
image 'node:lts-bullseye-slim'
args '-p 3000:3000'
}
}
steps {
unstash 'node_modules'
sh 'npm run-script test'
stash includes: 'node_modules/', name: 'node_modules'
} }
} }
} }