Add Lint build stage
Some checks failed
Core Repos/Homepage/pipeline/head There was a failure building this commit
Some checks failed
Core Repos/Homepage/pipeline/head There was a failure building this commit
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -4,12 +4,16 @@ pipeline {
|
|||||||
stage('setup') {
|
stage('setup') {
|
||||||
steps {
|
steps {
|
||||||
sh 'npm install'
|
sh 'npm install'
|
||||||
sh 'set PATH=$PATH:$(pwd)/node_modules/.bin'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('build') {
|
stage('build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'ng build --prod'
|
sh 'node_modules/.bin/ng build --prod'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('lint') {
|
||||||
|
steps {
|
||||||
|
sh 'node_modules/.bin/ng lint'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user