Fix bugs for new doc jobs 41/28741/1
authorShubhamRathi <shubhamiiitbackup@gmail.com>
Wed, 15 Feb 2017 18:55:14 +0000 (00:25 +0530)
committerShubhamRathi <shubhamiiitbackup@gmail.com>
Wed, 15 Feb 2017 18:55:14 +0000 (00:25 +0530)
Added new macro and changed parameters
in docs-rtd.yml

Change-Id: Ibb3306853e241674099ae0227719af6dc1280d1f
Signed-off-by: ShubhamRathi <shubhamiiitbackup@gmail.com>
jjb/global/releng-macros.yml
jjb/opnfvdocs/docs-rtd.yaml

index 19002fe..298fb04 100644 (file)
             choosing-strategy: 'gerrit'
             refspec: '$GERRIT_REFSPEC'
             <<: *git-scm-defaults
-
+- scm:
+    name: git-scm-with-submodules
+    scm:
+        - git:
+            credentials-id: '$SSH_CREDENTIAL_ID'
+            url: '$GIT_BASE'
+            refspec: ''
+            branches:
+                - 'refs/heads/{branch}'
+            skip-tag: true
+            wipe-workspace: true
+            submodule:
+                recursive: true
 - trigger:
     name: 'daily-trigger-disabled'
     triggers:
@@ -72,7 +84,6 @@
     triggers:
         - timed: ''
 
-# NOTE: unused macro, but we may use this for some jobs.
 - trigger:
     name: gerrit-trigger-patchset-created
     triggers:
                 branches:
                   - branch-compare-type: 'ANT'
                     branch-pattern: '**/{branch}'
+                file-paths:
+                  - compare-type: 'ANT'
+                    pattern: '{files}'
+            skip-vote:
+                successful: true
+                failed: true
+                unstable: true
+                notbuilt: true
 
 - trigger:
     name: gerrit-trigger-change-merged
index 40e91ca..25bb983 100644 (file)
             branch: '{branch}'
         - string:
             name: GIT_BASE
-            default: https://gerrit.opnfv.org/gerrit/releng
+            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:
         - gerrit-trigger-patchset-created:
             project: '**'
             branch: '{branch}'
             files: 'docs/**/*.rst'
-            skip-vote:
-                successful: true
-                failed: true
-                unstable: true
-                notbuilt: true
         - timed: 'H H * * *'
 
     builders: