diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2017-12-05 16:03:00 -0800 |
---|---|---|
committer | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2018-01-16 09:16:27 -0800 |
commit | 8a97b253153a8ae0f645943d1853b0b96fc515f0 (patch) | |
tree | dc9dc02db583f671d6ee5ea995418eb8eaf2bf22 /jjb | |
parent | 4c5197806b1ce162e19854975648528b1d10e2e2 (diff) |
Create job to deploy Pharos Dashboard
Runs docker-compose build & up to recreate containers when code changes,
and redeploys the dashboard.
JIRA: PHAROS-316
Change-Id: Ie83ae775c55aa9e18069b9988bfd771b5655c14b
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
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 |