summaryrefslogtreecommitdiffstats
path: root/jjb/pharos
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/pharos')
-rw-r--r--jjb/pharos/check-jinja2.yaml98
-rw-r--r--jjb/pharos/pharos-rtd-jobs.yaml12
-rw-r--r--jjb/pharos/pharos-tools.yml70
-rw-r--r--jjb/pharos/pharos-views.yaml6
-rw-r--r--jjb/pharos/pharos.yaml11
-rw-r--r--jjb/pharos/shell/backup-dashboard.sh28
-rw-r--r--jjb/pharos/shell/deploy-dashboard.sh19
7 files changed, 0 insertions, 244 deletions
diff --git a/jjb/pharos/check-jinja2.yaml b/jjb/pharos/check-jinja2.yaml
deleted file mode 100644
index e3f0df78a..000000000
--- a/jjb/pharos/check-jinja2.yaml
+++ /dev/null
@@ -1,98 +0,0 @@
----
-########################
-# Job configuration to validate jinja2 files
-########################
-- project:
-
- name: validate-pdf-templates
-
- project: 'pharos'
-
- jobs:
- - 'validate-pdf-jinja2-templates-{stream}'
-
- stream:
- - master:
- branch: '{stream}'
- disabled: false
- - fraser: &fraser
- branch: 'stable/{stream}'
- disabled: false
- - euphrates:
- branch: 'stable/{stream}'
- disabled: false
-
-########################
-# job templates
-########################
-
-- job-template:
- name: 'validate-pdf-jinja2-templates-{stream}'
-
- disabled: '{obj:disabled}'
-
- concurrent: true
-
- parameters:
- - project-parameter:
- project: $GERRIT_PROJECT
- branch: '{branch}'
- - node:
- name: SLAVE_NAME
- description: Slave to execute jnija template test
- default-slaves:
- - lf-build1
- allowed-multiselect: true
- ignore-offline-nodes: true
-
- scm:
- - git-scm-gerrit
-
- triggers:
- - gerrit:
- server-name: 'gerrit.opnfv.org'
- trigger-on:
- - patchset-created-event:
- exclude-drafts: 'false'
- exclude-trivial-rebase: 'false'
- exclude-no-code-change: 'false'
- - draft-published-event
- - comment-added-contains-event:
- comment-contains-value: 'recheck'
- - comment-added-contains-event:
- comment-contains-value: 'reverify'
- projects:
- - project-compare-type: 'REG_EXP'
- project-pattern: '{project}'
- branches:
- - branch-compare-type: 'ANT'
- branch-pattern: '**/{branch}'
- file-paths:
- - compare-type: ANT
- pattern: '**/*.yaml'
- - compare-type: ANT
- pattern: 'config/utils/*.py'
- - compare-type: ANT
- pattern: 'config/installers/**/*.j2'
- - compare-type: ANT
- pattern: 'check-*.sh'
- skip-vote:
- successful: false
- failed: false
- unstable: false
- notbuilt: false
-
- builders:
- - check-pdf-jinja
- - check-pdf-schema
-
-- builder:
- name: check-pdf-jinja
- builders:
- - shell: |
- $WORKSPACE/config/utils/check-jinja2.sh
-- builder:
- name: check-pdf-schema
- builders:
- - shell: |
- $WORKSPACE/config/utils/check-schema.sh
diff --git a/jjb/pharos/pharos-rtd-jobs.yaml b/jjb/pharos/pharos-rtd-jobs.yaml
deleted file mode 100644
index 60bcd8a00..000000000
--- a/jjb/pharos/pharos-rtd-jobs.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
----
-- project:
- name: pharos-rtd
- project: pharos
- project-name: pharos
-
- project-pattern: 'pharos'
- rtd-build-url: 'https://readthedocs.org/api/v2/webhook/opnfv-pharos/47385/'
- rtd-token: '12cb789478d0c3577fb62c610232b3113d3a16ad'
-
- jobs:
- - '{project-name}-rtd-jobs'
diff --git a/jjb/pharos/pharos-tools.yml b/jjb/pharos/pharos-tools.yml
deleted file mode 100644
index e28d0be6f..000000000
--- a/jjb/pharos/pharos-tools.yml
+++ /dev/null
@@ -1,70 +0,0 @@
----
-- project:
- name: pharos-dashboard-jobs
-
- project: 'pharos-tools'
- project-name: 'pharos-tools'
-
- stream:
- - master
-
- disabled: false
-
- jobs:
- - 'pharos-dashboard-backup'
- - 'pharos-dashboard-deploy'
-
-- project:
- name: pharos-dashboard-verify
-
- project: 'pharos-tools'
- project-name: 'pharos-tools'
- build-days-to-keep: 7
- tox-dir: 'dashboard'
-
- stream:
- - master
-
- disabled: false
-
- jobs:
- - 'gerrit-tox-verify'
-
-- 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}'
- files: 'dashboard/docker-compose.yml'
-
- builders:
- - shell:
- !include-raw: shell/deploy-dashboard.sh
diff --git a/jjb/pharos/pharos-views.yaml b/jjb/pharos/pharos-views.yaml
deleted file mode 100644
index e413632a8..000000000
--- a/jjb/pharos/pharos-views.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
----
-- project:
- name: pharos-view
- views:
- - project-view
- project-name: pharos
diff --git a/jjb/pharos/pharos.yaml b/jjb/pharos/pharos.yaml
deleted file mode 100644
index 0b5119657..000000000
--- a/jjb/pharos/pharos.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
----
-- project:
- name: pharos
-
- project:
- - '{name}'
-
- disabled: false
-
- jobs:
- - '{project}-verify-basic'
diff --git a/jjb/pharos/shell/backup-dashboard.sh b/jjb/pharos/shell/backup-dashboard.sh
deleted file mode 100644
index 4c1c01500..000000000
--- a/jjb/pharos/shell/backup-dashboard.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash -eux
-##############################################################################
-# Copyright (c) 2018 Linux Foundation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-BACKUP_DIR=$HOME/backups
-DATE=$(date +%Y%m%d)
-TAR_FILE=pharos-dashboard-db-$DATE.tar.tz
-
-mkdir -p $BACKUP_DIR
-echo "-- $DATE --"
-echo "--> Backing up Pharos Dashboard"
-
-docker run --rm \
- -v pharos-data:/pharos-data:ro \
- -v $BACKUP_DIR:/backup \
- alpine \
- tar -czf /backup/$TAR_FILE -C /pharos-data ./
-
-/usr/local/bin/gsutil cp $BACKUP_DIR/$TAR_FILE \
- gs://opnfv-backups/pharos-dashboard/ && rm $BACKUP_DIR/$TAR_FILE
-
-echo "--> Pharos dashboard backup complete"
diff --git a/jjb/pharos/shell/deploy-dashboard.sh b/jjb/pharos/shell/deploy-dashboard.sh
deleted file mode 100644
index 46a79c326..000000000
--- a/jjb/pharos/shell/deploy-dashboard.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash -eux
-##############################################################################
-# Copyright (c) 2018 Linux Foundation and others.
-#
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-cp $HOME/config.env $WORKSPACE/dashboard
-cd $WORKSPACE/dashboard
-
-docker-compose pull
-docker-compose up -d
-
-# Copy JIRA keys into web container
-WEB_CONTAINER="$(docker ps --filter 'name=dg01' -q)"
-docker cp $HOME/rsa.pub $WEB_CONTAINER:/pharos_dashboard/account/
-docker cp $HOME/rsa.pem $WEB_CONTAINER:/pharos_dashboard/account/