summaryrefslogtreecommitdiffstats
path: root/jjb/pharos/pharos-tools.yml
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-04-19 15:37:34 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2018-10-22 10:12:06 -0700
commitbbafa00756c3c742d31caa33da98ac0731a6c0a9 (patch)
tree191e472c0ba812adc361edabc37b2d86ff5aae5c /jjb/pharos/pharos-tools.yml
parent9b164628deaf8bc495d4eabdb6458add7175cd32 (diff)
Update Pharos Dashboard Jobs
Moves the pharos dashboard jobs to their own file sperate and deploys the dashboard when changes are merged to master. Note: this may need to be manually triggered due to the timing between the container being built and it being availble to be pulled. Also includes the following changes to the job: - Uploads backups to Google Storage - Remove sudo usage as docker can be ran as the Jenkins user - Renames jobs to match general naming scheme JIRA: PHAROS-394 Change-Id: I516c4414d7b0158f1f8478214c10f0aa7d176739 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'jjb/pharos/pharos-tools.yml')
-rw-r--r--jjb/pharos/pharos-tools.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/jjb/pharos/pharos-tools.yml b/jjb/pharos/pharos-tools.yml
new file mode 100644
index 000000000..507e93eb3
--- /dev/null
+++ b/jjb/pharos/pharos-tools.yml
@@ -0,0 +1,54 @@
+---
+- project:
+ name: pharos-dashboard-jobs
+
+ project: 'pharos-tools'
+
+ disabled: false
+
+ jobs:
+ - '{project}-verify-basic'
+ - 'pharos-dashboard-backup'
+ - 'pharos-dashboard-deploy'
+
+- job-template:
+ name: 'pharos-dashboard-backup'
+
+ disabled: '{obj:disabled}'
+
+ parameters:
+ - 'pharos-dashboard-defaults'
+
+ triggers:
+ - timed: '@daily'
+
+ builders:
+ - shell:
+ !include-raw: shell/backup-dashboard.sh
+
+- job-template:
+ name: 'pharos-dashboard-deploy'
+
+ disabled: '{obj:disabled}'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ branch: 'master'
+ - 'pharos-dashboard-defaults'
+
+ scm:
+ - git-scm-gerrit
+
+ triggers:
+ - gerrit-trigger-change-merged:
+ branch: 'master'
+ project: '{project}'
+ # In the future this should be switch to just the compose file
+ # for when tags are updated
+ # files: 'dashboard/docker-compose.yml'
+ files: 'dashboard/**'
+
+ builders:
+ - shell:
+ !include-raw: shell/deploy-dashboard.sh