Some checks failed
Core Repos/Homepage/pipeline/head There was a failure building this commit
33 lines
560 B
Groovy
33 lines
560 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
filename 'Dockerfile.jenkins'
|
|
dir '.'
|
|
args '-e CHROME_BIN=/bin/chromium -e NG_CLI_ANALYTICS="false"'
|
|
}
|
|
}
|
|
stages {
|
|
stage('setup') {
|
|
steps {
|
|
sh 'npm install'
|
|
}
|
|
}
|
|
stage('build') {
|
|
steps {
|
|
sh 'node_modules/.bin/ng build --prod'
|
|
}
|
|
}
|
|
stage('lint') {
|
|
steps {
|
|
sh 'node_modules/.bin/ng lint'
|
|
}
|
|
}
|
|
stage('test') {
|
|
steps {
|
|
sh 'node_modules/.bin/ng test --watch=false --progress=false'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|