Only trigger docs-verify-rtd-master for opnfvdocs
[releng.git] / jjb / opnfvdocs / docs-rtd.yaml
index 1492a68..a8d29e4 100644 (file)
@@ -8,12 +8,12 @@
     stream:
       - master:
           branch: 'master'
+      - gambia:
+          branch: 'stable/{stream}'
       - fraser:
           branch: 'stable/{stream}'
       - danube:
           branch: 'stable/{stream}'
-      - euphrates:
-          branch: 'stable/{stream}'
 
     project: 'opnfvdocs'
     rtdproject: 'opnfv'
     triggers:
       - gerrit-trigger-patchset-created:
           server: 'gerrit.opnfv.org'
-          project: '**'
+          project: 'opnfvdocs'
           branch: '{branch}'
           files: 'docs/**'
 
     builders:
-      - shell: |
-          if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then
-              cd docs/submodules/$GERRIT_PROJECT
-              git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
-              cd -
-          else
-              git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
-          fi
-          if [ -d docs/subdmodules ]; then
-              for project in docs/submodules/*; do
-                  cd $project && git submodule deinit -f . && cd -
-              done
-          fi
       - shell: |
           sudo -H pip install virtualenv
           virtualenv $WORKSPACE/venv