added a step to do builds when on pushes to dev branch

pull/2/head
Chris Veilleux 2019-03-02 12:44:49 -06:00
parent 59503e1514
commit 1b1a07ef7a
1 changed files with 16 additions and 0 deletions

16
Jenkinsfile vendored
View File

@ -3,6 +3,22 @@ pipeline {
stages {
// Run the build in the against the dev branch to check for compile errors
stage('Build dev branch') {
when {
branch 'dev'
}
steps {
echo 'Building code in the "dev" branch...'
sh 'npm install'
sh 'ng build --project shared'
sh 'ng build --project globalnav'
sh 'ng build --project page-not-found'
sh 'ng build --project account --configuration dev'
sh 'ng build --project sso --configuration dev'
}
}
// Deploy to the Test environment
stage('Build for Test Environment') {
when {