Jesse James Isler
abced8fb6c
Some checks failed
gitea_dndsources/schedulord-frontend/pipeline/head There was a failure building this commit
30 lines
510 B
Groovy
30 lines
510 B
Groovy
pipeline {
|
|
agent any
|
|
tools {
|
|
nodejs "node"
|
|
}
|
|
stages {
|
|
stage('NPM Install') {
|
|
withEnv(["NPM_CONFIG_LOGLEVEL=warn"]) {
|
|
sh 'npm install'
|
|
}
|
|
}
|
|
|
|
stage('Test') {
|
|
withEnv(["CHROME_BIN=/usr/bin/chromium-browser"]) {
|
|
sh 'ng test --progress=false --watch false'
|
|
}
|
|
junit '**/test-results.xml'
|
|
}
|
|
|
|
stage('Lint') {
|
|
sh 'ng lint'
|
|
}
|
|
|
|
stage('Build') {
|
|
milestone()
|
|
sh 'ng build --prod --aot --sm --progress=false'
|
|
}
|
|
}
|
|
}
|