summaryrefslogtreecommitdiffstats
path: root/jjb/copper
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2015-11-11 13:02:48 -0500
committerAric Gardner <agardner@linuxfoundation.org>2015-11-11 13:07:21 -0500
commit7b1c750b1bf38be2af727fa14528d223d29ed891 (patch)
treec16c3a6189678d5b8d05128f6edc0beb3664d675 /jjb/copper
parent8598a3452355c86c7f79b4ea784b0b310711a8b8 (diff)
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 <agardner@linuxfoundation.org>
Diffstat (limited to 'jjb/copper')
-rw-r--r--jjb/copper/copper.yml149
-rw-r--r--jjb/copper/docu-build.sh54
2 files changed, 0 insertions, 203 deletions
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