diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-06-28 10:52:52 -0400 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2019-10-29 13:54:25 -0400 |
commit | 600548d4df9d788585aaa6549bcab38c0f34d9ee (patch) | |
tree | d7c9b86be42c0e55b0499e40fd5b918d9f46bee4 /jjb/pharos | |
parent | b7871b1916fc8941c39950a9fb05308432a3a065 (diff) |
Moves LaaS Jobs to New Project
Moves all existing jobs from pharos-tools into laas
Google storage locations are created on the fly,
so no problem changing them.
Change-Id: Ic3df7a261af58f3cfce0dc85ef6428c7fb0196f6
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'jjb/pharos')
-rw-r--r-- | jjb/pharos/pharos-tools.yml | 70 | ||||
-rw-r--r-- | jjb/pharos/shell/backup-dashboard.sh | 28 | ||||
-rw-r--r-- | jjb/pharos/shell/deploy-dashboard.sh | 19 |
3 files changed, 0 insertions, 117 deletions
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/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/ |