Fix Yamllint Violations for jjb/opnfvdocs 61/41561/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Sat, 8 Jul 2017 02:57:27 +0000 (19:57 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Mon, 11 Sep 2017 17:09:04 +0000 (10:09 -0700)
JIRA: RELENG-254

Change-Id: I0e168d0ce619df20480f6da92cdfa470dca713b1
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/opnfvdocs/docs-rtd.yaml
jjb/opnfvdocs/opnfvdocs.yml

index 864626b..f81feab 100644 (file)
@@ -1,14 +1,15 @@
+---
 - project:
     name: docs-rtd
     jobs:
-        - 'docs-merge-rtd-{stream}'
-        - 'docs-verify-rtd-{stream}'
+      - 'docs-merge-rtd-{stream}'
+      - 'docs-verify-rtd-{stream}'
 
     stream:
-        - master:
-            branch: 'master'
-        - danube:
-            branch: 'stable/{stream}'
+      - master:
+          branch: 'master'
+      - danube:
+          branch: 'stable/{stream}'
 
     project: 'opnfvdocs'
     rtdproject: 'opnfv'
     project-type: freestyle
 
     parameters:
-        - label:
-            name: SLAVE_LABEL
-            default: 'lf-build1'
-            description: 'Slave label on Jenkins'
-        - project-parameter:
-            project: '{project}'
-            branch: '{branch}'
+      - label:
+          name: SLAVE_LABEL
+          default: 'lf-build1'
+          description: 'Slave label on Jenkins'
+      - project-parameter:
+          project: '{project}'
+          branch: '{branch}'
 
     triggers:
-        - gerrit-trigger-change-merged:
-            project: '**'
-            branch: '{branch}'
-            files: 'docs/**/*.*'
+      - gerrit-trigger-change-merged:
+          project: '**'
+          branch: '{branch}'
+          files: 'docs/**/*.*'
 
     builders:
-        - shell: |
-            if [ $GERRIT_BRANCH == "master" ]; then
-              RTD_BUILD_VERSION=latest
-            else
-              RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
-            fi
-            curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/opnfvdocsdemo
+      - shell: |
+          if [ $GERRIT_BRANCH == "master" ]; then
+            RTD_BUILD_VERSION=latest
+          else
+            RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
+          fi
+          curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/opnfvdocsdemo
 
 
 - job-template:
     project-type: freestyle
 
     parameters:
-        - label:
-            name: SLAVE_LABEL
-            default: 'lf-build2'
-            description: 'Slave label on Jenkins'
-        - project-parameter:
-            project: '{project}'
-            branch: '{branch}'
-        - string:
-            name: GIT_BASE
-            default: https://gerrit.opnfv.org/gerrit/opnfvdocs
-            description: 'Git URL to use on this Jenkins Slave'
+      - label:
+          name: SLAVE_LABEL
+          default: 'lf-build2'
+          description: 'Slave label on Jenkins'
+      - project-parameter:
+          project: '{project}'
+          branch: '{branch}'
+      - string:
+          name: GIT_BASE
+          default: https://gerrit.opnfv.org/gerrit/opnfvdocs
+          description: 'Git URL to use on this Jenkins Slave'
+
     scm:
-        - git-scm-with-submodules:
-            branch: '{branch}'
+      - git-scm-with-submodules:
+          branch: '{branch}'
 
     triggers:
-        - gerrit-trigger-patchset-created:
-            server: 'gerrit.opnfv.org'
-            project: '**'
-            branch: '{branch}'
-            files: 'docs/**/*.*'
-        - timed: 'H H * * *'
+      - gerrit-trigger-patchset-created:
+          server: 'gerrit.opnfv.org'
+          project: '**'
+          branch: '{branch}'
+          files: 'docs/**/*.*'
+      - timed: 'H H * * *'
 
     builders:
-        - shell: |
-            if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
-                cd docs/submodules/$GERRIT_PROJECT
-                git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
-            else
-                git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
-            fi
-        - shell: |
-            sudo pip install virtualenv 
-            virtualenv $WORKSPACE/venv
-            . $WORKSPACE/venv/bin/activate
-            pip install --upgrade pip
-            pip freeze
-            pip install tox
-            tox -edocs
+      - shell: |
+          if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
+              cd docs/submodules/$GERRIT_PROJECT
+              git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
+          else
+              git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
+          fi
+      - shell: |
+          sudo pip install virtualenv
+          virtualenv $WORKSPACE/venv
+          . $WORKSPACE/venv/bin/activate
+          pip install --upgrade pip
+          pip freeze
+          pip install tox
+          tox -edocs
index fc825ff..6f63db9 100644 (file)
@@ -1,3 +1,4 @@
+---
 ########################
 # Job configuration for opnfvdocs
 ########################
@@ -8,19 +9,19 @@
     project: '{name}'
 
     jobs:
-        - 'opnfvdocs-verify-shellcheck-{stream}'
-        - 'opnfvdocs-merge-shellcheck-{stream}'
-        - 'opnfvdocs-daily-{stream}'
+      - 'opnfvdocs-verify-shellcheck-{stream}'
+      - 'opnfvdocs-merge-shellcheck-{stream}'
+      - 'opnfvdocs-daily-{stream}'
 
     stream:
-        - master:
-            branch: '{stream}'
-            gs-pathname: ''
-            disabled: false
-        - danube:
-            branch: 'stable/{stream}'
-            gs-pathname: '/{stream}'
-            disabled: false
+      - master:
+          branch: '{stream}'
+          gs-pathname: ''
+          disabled: false
+      - danube:
+          branch: 'stable/{stream}'
+          gs-pathname: '/{stream}'
+          disabled: false
 
 ########################
 # job templates
     disabled: '{obj:disabled}'
 
     parameters:
-        - project-parameter:
-            project: $GERRIT_PROJECT
-            branch: '{branch}'
-        - string:
-            name: GIT_CLONE_BASE
-            default: ssh://gerrit.opnfv.org:29418
-            description: "Used for overriding the GIT URL coming from parameters macro."
+      - project-parameter:
+          project: $GERRIT_PROJECT
+          branch: '{branch}'
+      - string:
+          name: GIT_CLONE_BASE
+          default: ssh://gerrit.opnfv.org:29418
+          description: "Used for overriding the GIT URL coming from parameters macro."
 
     scm:
-        - git-scm-gerrit
+      - 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}'
-            skip-vote:
-                successful: true
-                failed: true
-                unstable: true
-                notbuilt: true
+      - 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}'
+          skip-vote:
+            successful: true
+            failed: true
+            unstable: true
+            notbuilt: true
 
     builders:
-        - check-bash-syntax
+      - check-bash-syntax
 
 - job-template:
     name: 'opnfvdocs-merge-shellcheck-{stream}'
     disabled: '{obj:disabled}'
 
     parameters:
-        - project-parameter:
-            project: $GERRIT_PROJECT
-            branch: '{branch}'
-        - string:
-            name: GIT_CLONE_BASE
-            default: ssh://gerrit.opnfv.org:29418
-            description: "Used for overriding the GIT URL coming from parameters macro."
-        - string:
-            name: GS_URL
-            default: '$GS_BASE{gs-pathname}'
-            description: "Directory where the build artifact will be located upon the completion of the build."
+      - project-parameter:
+          project: $GERRIT_PROJECT
+          branch: '{branch}'
+      - string:
+          name: GIT_CLONE_BASE
+          default: ssh://gerrit.opnfv.org:29418
+          description: "Used for overriding the GIT URL coming from parameters macro."
+      - string:
+          name: GS_URL
+          default: '$GS_BASE{gs-pathname}'
+          description: "Directory where the build artifact will be located upon the completion of the build."
 
     scm:
-        - git-scm
+      - git-scm
 
     triggers:
-        - gerrit:
-            server-name: 'gerrit.opnfv.org'
-            trigger-on:
-                - change-merged-event
-                - comment-added-contains-event:
-                    comment-contains-value: 'remerge'
-            projects:
-              - project-compare-type: 'REG_EXP'
-                project-pattern: '{project}'
-                branches:
-                  - branch-compare-type: 'ANT'
-                    branch-pattern: '**/{branch}'
+      - gerrit:
+          server-name: 'gerrit.opnfv.org'
+          trigger-on:
+            - change-merged-event
+            - comment-added-contains-event:
+                comment-contains-value: 'remerge'
+          projects:
+            - project-compare-type: 'REG_EXP'
+              project-pattern: '{project}'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
 
     builders:
-        - check-bash-syntax
+      - check-bash-syntax
 
 - job-template:
     name: 'opnfvdocs-daily-{stream}'
     disabled: true
 
     parameters:
-        - project-parameter:
-            project: '{project}'
-            branch: '{branch}'
-        - string:
-            name: GS_URL
-            default: '$GS_BASE{gs-pathname}'
-            description: "Directory where the build artifact will be located upon the completion of the build."
-        - string:
-            name: GIT_CLONE_BASE
-            default: ssh://gerrit.opnfv.org:29418
-            description: "Used for overriding the GIT URL coming from parameters macro."
+      - project-parameter:
+          project: '{project}'
+          branch: '{branch}'
+      - string:
+          name: GS_URL
+          default: '$GS_BASE{gs-pathname}'
+          description: "Directory where the build artifact will be located upon the completion of the build."
+      - string:
+          name: GIT_CLONE_BASE
+          default: ssh://gerrit.opnfv.org:29418
+          description: "Used for overriding the GIT URL coming from parameters macro."
 
     scm:
-        - git-scm
+      - git-scm
 
     triggers:
-        - timed: '0 H/6 * * *'
+      - timed: '0 H/6 * * *'
 
     builders:
-        - build-html-and-pdf-docs-output
-#        - upload-generated-docs-to-opnfv-artifacts
+      - build-html-and-pdf-docs-output
+#     - upload-generated-docs-to-opnfv-artifacts