Work damnit!
gitea_dndsources/schedulord-frontend/pipeline/head There was a failure building this commit Details

This commit is contained in:
Jesse James Isler 2022-06-09 11:09:49 +02:00
parent b988842aa0
commit 81e3310eef
1 changed files with 17 additions and 1 deletions

18
Jenkinsfile vendored
View File

@ -1,22 +1,37 @@
pipeline {
agent any
agent none
stages {
stage('Install') {
agent {
docker {
image 'node:lts-bullseye-slim'
args '-p 3000:3000'
}
}
steps {
sh 'npm install'
stash includes: 'node_modules/', name: 'node_modules'
}
}
stage('Test') {
agent {
docker {
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 {
unstash 'node_modules'
sh 'npm run-script test'
}
}
@ -25,6 +40,7 @@ pipeline {
stage('Build') {
steps {
unstash 'node_modules'
sh 'npm run-script build'
stash includes: 'dist/', name: 'dist'
}