changed jenkinsfile to build when a PR targeting the "dev" branch is created. the intent is to catch compile errors before merging
parent
7759f91f94
commit
1acb7c1a35
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue