diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2018-01-17 22:00:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-01-17 22:00:49 +0000 |
commit | 887c61bb5e98d2e527d966d1a2efe10e293d3407 (patch) | |
tree | 871707726991c103f3b0f78e179156b4bdce6cde /jjb | |
parent | 6be1d52e6af507f7dad6d0ec9c1f4628f5eaba06 (diff) | |
parent | 8a97b253153a8ae0f645943d1853b0b96fc515f0 (diff) |
Merge "Create job to deploy Pharos Dashboard"
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/pharos/pharos.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/jjb/pharos/pharos.yml b/jjb/pharos/pharos.yml index c721c8d87..bf42f6e9c 100644 --- a/jjb/pharos/pharos.yml +++ b/jjb/pharos/pharos.yml @@ -9,6 +9,7 @@ jobs: - '{project}-verify-basic' - 'backup-pharos-dashboard' + - 'deploy-pharos-dashboard' - job-template: name: 'backup-pharos-dashboard' @@ -36,3 +37,37 @@ sudo mv $TMP_DIR/pharos-dashboard-db-$(date +%Y%m%d).tar.gz $BACKUP_DIR sudo chown $USER:$USER $BACKUP_DIR/pharos-dashboard-db-$(date +%Y%m%d).tar.gz echo "...complete" + +- job-template: + name: 'deploy-pharos-dashboard' + + disabled: '{obj:disabled}' + + parameters: + - project-parameter: + project: 'pharos-tools' + branch: 'master' + - 'pharos-dashboard-defaults' + + scm: + - git-scm-gerrit + + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - ref-updated-event + - comment-added-contains-event: + comment-contains-value: '^redeploy$' + projects: + - project-compare-type: 'ANT' + project-pattern: 'pharos-tools' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/master' + + builders: + - shell: | + cd $WORKSPACE/dashboard + sudo docker-compose build + sudo docker-compose up -d |