schedulord-frontend/Jenkinsfile

32 lines
626 B
Plaintext
Raw Normal View History

2022-06-08 17:35:09 +00:00
pipeline {
2022-06-09 09:37:08 +00:00
agent any
tools {
nodejs "node"
}
2022-06-09 08:38:34 +00:00
stages {
2022-06-09 09:37:08 +00:00
stage('NPM Install') {
withEnv(["NPM_CONFIG_LOGLEVEL=warn"]) {
sh 'npm install'
}
}
2022-06-09 08:38:34 +00:00
2022-06-09 09:37:08 +00:00
stage('Test') {
withEnv(["CHROME_BIN=/usr/bin/chromium-browser"]) {
sh 'ng test --progress=false --watch false'
}
junit '**/test-results.xml'
}
2022-06-09 08:38:34 +00:00
2022-06-09 09:37:08 +00:00
stage('Lint') {
sh 'ng lint'
}
2022-06-09 08:38:34 +00:00
2022-06-09 09:37:08 +00:00
stage('Build') {
milestone()
sh 'ng build --prod --aot --sm --progress=false'
}
}
2022-06-09 08:06:50 +00:00
}