summaryrefslogtreecommitdiffstats
path: root/jjb/octopus
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/octopus')
-rw-r--r--jjb/octopus/build-docu.sh11
-rw-r--r--jjb/octopus/octopus.yml45
2 files changed, 56 insertions, 0 deletions
diff --git a/jjb/octopus/build-docu.sh b/jjb/octopus/build-docu.sh
new file mode 100644
index 000000000..cbbf265d3
--- /dev/null
+++ b/jjb/octopus/build-docu.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+for file in $(find . -type f -iname '*.rst'); do
+ file_cut="${{file%.*}}"
+ html_file=$file_cut".html"
+ pdf_file=$file_cut".pdf"
+ rst2html $file > $html_file
+ rst2pdf $file -o $pdf_file
+done
+v
+v
+
diff --git a/jjb/octopus/octopus.yml b/jjb/octopus/octopus.yml
index b0657de9f..40b25dea5 100644
--- a/jjb/octopus/octopus.yml
+++ b/jjb/octopus/octopus.yml
@@ -178,6 +178,51 @@
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
+
+