feature/jenkins-ci (#1)
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:
2020-04-18 17:33:39 +00:00
committed by Gitea
parent b85aca7c3e
commit 432ab5ddb3
10 changed files with 196 additions and 88 deletions

20
Jenkinsfile vendored Normal file
View 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'
}
}
}
}