Configured artifacts publish daily & on merge for projects with documentation
[releng.git] / jjb / octopus / octopus.yml
index 40b25de..b465537 100644 (file)
         - test-macro
 
     builders:
+        - shell:
+            !include-raw build-docu.sh
         - shell: |
-            pwd
-            find .
-            echo "Hello world from octopus {somevar} daily"
+           gsutil cp docs/*.pdf gs://artifacts.opnfv.org/octopus/docs/
+           gsutil cp docs/*.html gs://artifacts.opnfv.org/octopus/docs/
+
 
     postbuilders:
         - test-macro
                     branch-pattern: '**/master'
 
     builders:
-        - shell: |
-            pwd
-            find .
-            echo "verify logic goes here"
+        - shell:
+            !include-raw build-docu.sh
 
 - job-template:
     name: 'octopus-merge'
                       branch-pattern: '**/master'
 
     builders:
+        - shell:
+            !include-raw build-docu.sh
         - shell: |
-            pwd
-            find .
-            echo "merge logic goes here"
-
-- job-template:
-     name: 'octopus-build-docs'
-
-     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: 'octopus'
-                 branches:
-                     - branch-compare-type: 'ANT'
-                       branch-pattern: '**/master'
-
-     builders:
-         - shell:
-             !include-raw build-docu.sh
-
-
-
-
+           gsutil cp docs/*.pdf gs://artifacts.opnfv.org/octopus/docs/
+           gsutil cp docs/*.html gs://artifacts.opnfv.org/octopus/docs/