changed jenkinsfile to build when a PR targeting the "dev" branch is created. the intent is to catch compile errors before merging

pull/5/head
Chris Veilleux 2019-05-06 16:09:23 -05:00
parent 7759f91f94
commit 1acb7c1a35
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -4,12 +4,12 @@ pipeline {
stages {
// Run the build in the against the dev branch to check for compile errors
stage('Build dev branch') {
stage('Build PR) {
when {
branch 'dev'
changeRequest target: 'dev'
}
steps {
echo 'Building code in the "dev" branch...'
echo 'Building code in the pull request...'
sh 'npm install'
sh 'ng build --project shared'
sh 'ng build --project globalnav'