Build for production and run lint
This commit was merged in pull request #1.
This commit is contained in:
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user