From 7b1c750b1bf38be2af727fa14528d223d29ed891 Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Wed, 11 Nov 2015 13:02:48 -0500 Subject: Remove old way of building documentation for copper Documentation now built by jjb/opnfv/opnfv-docs.yml Change-Id: Ib8121882427ebdf3d2d44db889c19b37ce354506 Signed-off-by: Aric Gardner --- jjb/copper/copper.yml | 149 ----------------------------------------------- jjb/copper/docu-build.sh | 54 ----------------- 2 files changed, 203 deletions(-) delete mode 100644 jjb/copper/docu-build.sh (limited to 'jjb') diff --git a/jjb/copper/copper.yml b/jjb/copper/copper.yml index 0a7f57d7b..04d9074f5 100644 --- a/jjb/copper/copper.yml +++ b/jjb/copper/copper.yml @@ -2,9 +2,6 @@ name: copper jobs: - 'copper-test' - - 'copper-daily-{stream}' - - 'copper-merge' - - 'copper-verify' # stream: branch with - in place of / (eg. stable-helium) # branch: branch (eg. stable/helium) @@ -29,149 +26,3 @@ builders: - shell: | echo "Hello world from copper" - -- job-template: - name: 'copper-daily-{stream}' - node: master - - # Job template for daily builders - # - # Required Variables: - # stream: branch with - in place of / (eg. stable) - # branch: branch (eg. stable) - - project-type: freestyle - varsetabove: '{somevar}' - - logrotate: - daysToKeep: '{build-days-to-keep}' - numToKeep: '{build-num-to-keep}' - artifactDaysToKeep: '{build-artifact-days-to-keep}' - artifactNumToKeep: '{build-artifact-num-to-keep}' - - parameters: - - project-parameter: - project: '{project}' - - scm: - - git-scm: - credentials-id: '{ssh-credentials}' - refspec: '' - branch: '{branch}' - - wrappers: - - ssh-agent-credentials: - user: '{ssh-credentials}' - - triggers: - - timed: 'H H * * *' - - prebuilders: - - test-macro - - builders: - - shell: - !include-raw docu-build.sh - - postbuilders: - - test-macro - -- job-template: - name: 'copper-verify' - node: master - - project-type: freestyle - - logrotate: - daysToKeep: 30 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: 'master' - scm: - - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' - refspec: '$GERRIT_REFSPEC' - choosing-strategy: 'gerrit' - - wrappers: - - ssh-agent-credentials: - user: '{ssh-credentials}' - - triggers: - - gerrit: - 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: 'ANT' - project-pattern: 'copper' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/master' - - builders: - - shell: - !include-raw docu-build.sh - - -- job-template: - name: 'copper-merge' - node: master - - # builder-merge job to run JJB update - # - # This job's purpose is to update all the JJB - - project-type: freestyle - - logrotate: - daysToKeep: 30 - numToKeep: 40 - artifactDaysToKeep: -1 - artifactNumToKeep: 5 - - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: 'master' - - scm: - - gerrit-trigger-scm: - credentials-id: '{ssh-credentials}' - refspec: '' - choosing-strategy: 'default' - - wrappers: - - ssh-agent-credentials: - user: '{ssh-credentials}' - - triggers: - - gerrit: - trigger-on: - - change-merged-event - - comment-added-contains-event: - comment-contains-value: 'remerge' - projects: - - project-compare-type: 'ANT' - project-pattern: 'copper' - branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/master' - - builders: - - shell: - !include-raw docu-build.sh diff --git a/jjb/copper/docu-build.sh b/jjb/copper/docu-build.sh deleted file mode 100644 index c4edb949e..000000000 --- a/jjb/copper/docu-build.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -set -e -set -o pipefail - -export PATH=$PATH:/usr/local/bin/ - -echo -echo "Build" -echo "-----" -echo - -#make -sphinx-build -b html -E -c etc/ docs/design/ build/ - -echo -echo "Upload" -echo "------" -echo - -# NOTE: make sure source parameters for GS paths are not empty. -[[ $GERRIT_CHANGE_NUMBER =~ .+ ]] -[[ $GERRIT_PROJECT =~ .+ ]] -[[ $GERRIT_BRANCH =~ .+ ]] - -gs_path_review="artifacts.opnfv.org/review/$GERRIT_CHANGE_NUMBER" -if [[ $GERRIT_BRANCH = "master" ]] ; then - gs_path_branch="artifacts.opnfv.org/$GERRIT_PROJECT" -else - gs_path_branch="artifacts.opnfv.org/$GERRIT_PROJECT/${{GERRIT_BRANCH##*/}}" -fi - -if [[ $JOB_NAME =~ "verify" ]] ; then - gsutil cp -r build/* "gs://$gs_path_review/" - echo - echo "Document is available at http://$gs_path_review/index.html" - # post link to gerrit as comment - gerrit_comment=$(echo '"Document is available at 'http://$gs_path_review/index.html' for review"') - ssh -p 29418 gerrit.opnfv.org gerrit review -p $GERRIT_PROJECT -m \ - $gerrit_comment $GERRIT_PATCHSET_REVISION -else - gsutil cp -r build/* "gs://$gs_path_branch/docs/design/" - #gsutil cp -r build/docs/design "gs://$gs_path_branch/" - #gsutil cp -r build/requirements/html "gs://$gs_path_branch/" - #gsutil cp -r build/requirements/latex/*.pdf "gs://$gs_path_branch/" - #echo - - echo "Latest document is available at http://$gs_path_branch/docs/design/index.html" - - if gsutil ls "gs://$gs_path_review" > /dev/null 2>&1 ; then - echo - echo "Deleting Out-of-dated Documents..." - gsutil rm -r "gs://$gs_path_review" - fi -fi -- cgit 1.2.3-korg