Remove old way of building documentation for copper 19/3219/2
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 11 Nov 2015 18:02:48 +0000 (13:02 -0500)
committerAric Gardner <agardner@linuxfoundation.org>
Wed, 11 Nov 2015 18:07:21 +0000 (13:07 -0500)
Documentation now built by jjb/opnfv/opnfv-docs.yml

Change-Id: Ib8121882427ebdf3d2d44db889c19b37ce354506
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
jjb/copper/copper.yml
jjb/copper/docu-build.sh [deleted file]

index 0a7f57d..04d9074 100644 (file)
@@ -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)
     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 (file)
index c4edb94..0000000
+++ /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