summaryrefslogtreecommitdiffstats
path: root/jjb/octopus/octopus.yml
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2015-04-14 19:22:56 +0800
committerMatthewLi <matthew.lijun@huawei.com>2015-04-14 19:22:56 +0800
commitc42455af4f0cf3502f16b2d017cd98df038f83e8 (patch)
treece3dfc506ae59ea801f06790d64849e608c90757 /jjb/octopus/octopus.yml
parent8b31cdbcedfd0390401753dc5496112046db82ce (diff)
JIRA: DOCS-6 - Add a build shell and a JJB for Octopus project
This job will be used to build documents Change-Id: If4f1e2853b8bce48145a842488bed01ac9b93ab0 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'jjb/octopus/octopus.yml')
-rw-r--r--jjb/octopus/octopus.yml45
1 files changed, 45 insertions, 0 deletions
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
+
+