feature/jenkins-ci (#1)
All checks were successful
Core Repos/Homepage/pipeline/head This commit looks good
All checks were successful
Core Repos/Homepage/pipeline/head This commit looks good
Build for production and run lint
This commit was merged in pull request #1.
This commit is contained in:
20
Jenkinsfile
vendored
Normal file
20
Jenkinsfile
vendored
Normal file
@@ -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