Merge "utils: fix yamllint issues"
[releng.git] / jjb / opnfvdocs / docs-rtd.yaml
index d3d2187..bf6d001 100644 (file)
@@ -7,6 +7,8 @@
     stream:
         - master:
             branch: 'master'
+        - danube:
+            branch: 'stable/{stream}'
 
     project: 'opnfvdocs'
     rtdproject: 'opnfv'
         - git-scm
 
     triggers:
-        - gerrit-trigger-change-merged
+        - gerrit-trigger-change-merged:
+            project: '**'
+            branch: '{branch}'
+            files: 'docs/**/*.*'
 
     builders:
         - shell: !include-raw: docs-post-rtd.sh
@@ -46,7 +51,7 @@
     parameters:
         - label:
             name: SLAVE_LABEL
-            default: 'lf-build1'
+            default: 'lf-build2'
             description: 'Slave label on Jenkins'
         - project-parameter:
             project: '{project}'
@@ -56,7 +61,7 @@
             default: https://gerrit.opnfv.org/gerrit/opnfvdocs
             description: 'Git URL to use on this Jenkins Slave'
     scm:
-        - git-scm-gerrit:
+        - git-scm-with-submodules:
             branch: '{branch}'
 
     triggers:
             server: 'gerrit.opnfv.org'
             project: '**'
             branch: '{branch}'
-            files: 'docs/**/*.rst'
+            files: 'docs/**/*.*'
         - timed: 'H H * * *'
 
     builders:
         - shell: |
-            git submodule update --init
             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
-            cd "$WORKSPACE"
-            for x in $(git submodule | awk '{{print $2}}');
-            do
-              cd "$x"
-              git filter-branch --subdirectory-filter docs/
-              cd -
-            done
-
         - shell: |
             sudo pip install virtualenv 
             virtualenv $WORKSPACE/venv
-            source $WORKSPACE/venv/bin/activate
+            . $WORKSPACE/venv/bin/activate
             pip install --upgrade pip
             pip freeze
             pip install tox