Files
Homepage/Jenkinsfile
cameron 432ab5ddb3
All checks were successful
Core Repos/Homepage/pipeline/head This commit looks good
feature/jenkins-ci (#1)
Build for production and run lint
2020-04-18 17:33:39 +00:00

21 lines
424 B
Groovy

pipeline {
agent { docker { image 'node:13.10-alpine' } }
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'
}
}
}
}