Skip to content

Commit

Permalink
Jenkinsfile updates (#149)
Browse files Browse the repository at this point in the history
* Updated Jenkinsfile

* Updated Jenkinsfile

* Fixed copy/paste issue

* Updated karma-chrome version

* Testing deployment

* Copied from top-tcp-angular

* Copied from top-tcp-angular

* Force NPM install

* Updated

* use CI

* npm install

* using npm install

* Corrected image name

* a+x

* Forcing a rebuild

* Permissions

* Run sh

* Change ownership

* Permissions

* Added PORT

* HTTPS option

* No prod env....yet

* Deploy only when PR or master

* Fixing conditional
  • Loading branch information
jduquette authored Jan 29, 2020
1 parent 8bb27b1 commit 73fce11
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,16 @@ pipeline {
}
}
stage('Build Dev Image'){
/*when {
expression { env.JOB_BASE_NAME.startsWith('PR') }
}*/
when { anyOf { branch 'master'; expression { env.JOB_BASE_NAME.startsWith('PR') }} }
steps{
nodejs('12') {
sh 'npm install import-sort'
echo "***** running package-for-ecs"
sh "./tcp-angular-ecs/package-for-ecs excellaco/tcp-angular"
}
}
}
stage('Deploy Dev Image'){
/*when {
expression { env.JOB_BASE_NAME.startsWith('PR') }
}*/
when { anyOf { branch 'master'; expression { env.JOB_BASE_NAME.startsWith('PR') }} }
steps{
dir('tcp-angular-ecs'){
sh "./configure-for-ecs ${PROJECT_NAME} dev ${AWS_REGION} ${env.GIT_COMMIT}"
Expand All @@ -106,8 +101,13 @@ pipeline {
steps{
dir('tcp-angular-ecs'){
sh './tag-as-latest'
/*
// We don't currently have a "Production" environment, so this stage would fail
// But want to tag master at latest when a PR is merged.
// TODO: Remove the comments once a "Production" environment is available...
sh "./configure-for-ecs ${PROJECT_NAME} prod ${AWS_REGION} latest"
sh './deploy-to-ecs ${PROJECT_NAME} prod ${AWS_REGION}'
*/
}
}
}
Expand Down

0 comments on commit 73fce11

Please sign in to comment.