diff options
-rw-r--r-- | jjb/genesis/build-docu.sh | 8 | ||||
-rw-r--r-- | jjb/genesis/genesis.yml | 45 |
2 files changed, 53 insertions, 0 deletions
diff --git a/jjb/genesis/build-docu.sh b/jjb/genesis/build-docu.sh new file mode 100644 index 000000000..680686eb6 --- /dev/null +++ b/jjb/genesis/build-docu.sh @@ -0,0 +1,8 @@ +#!/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 diff --git a/jjb/genesis/genesis.yml b/jjb/genesis/genesis.yml index b146572a7..e70442ddd 100644 --- a/jjb/genesis/genesis.yml +++ b/jjb/genesis/genesis.yml @@ -12,6 +12,7 @@ - 'genesis-{installer}-verify' - 'genesis-{installer}-merge' - 'genesis-{installer}-daily-master' + - 'genesis-build-docs' # stream: branch with - in place of / (eg. stable-helium) # branch: branch (eg. stable/helium) @@ -200,6 +201,50 @@ builders: - '{installer}-daily-master' +- job-template: + name: 'genesis-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: 'genesis' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/master' + + builders: + - shell: | + !include-raw build-docu.sh + ######################## # builder macros ######################## |