summaryrefslogtreecommitdiffstats
path: root/jjb/bottlenecks/bottlenecks.yml
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2015-08-21 10:50:54 +0800
committerMatthewLi <matthew.lijun@huawei.com>2015-08-21 11:04:43 +0800
commit254280c89a1417447806b8f51cb314081499e161 (patch)
treeced8243ac31e6278791e37892ed561a95bc19b74 /jjb/bottlenecks/bottlenecks.yml
parent3fb08b6c76d24bbedf724735685de655a2779681 (diff)
add test and verify jobs for bottlenecks project
BOTTLENECK-1 add test job to print hello world and docu-build script in verify job builder Change-Id: I5197ebb27cbc5c18101276e09a103d8cc5bbb176 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'jjb/bottlenecks/bottlenecks.yml')
-rw-r--r--jjb/bottlenecks/bottlenecks.yml89
1 files changed, 89 insertions, 0 deletions
diff --git a/jjb/bottlenecks/bottlenecks.yml b/jjb/bottlenecks/bottlenecks.yml
new file mode 100644
index 000000000..0baf7ba31
--- /dev/null
+++ b/jjb/bottlenecks/bottlenecks.yml
@@ -0,0 +1,89 @@
+####################################
+# Job configuration for bottlenecks
+####################################
+- project:
+ name: bottlenecks
+ jobs:
+ - 'bottlenecks-test'
+ - 'bottlenecks-verify'
+
+ # stream: branch with - in place of / (eg. stable-arno)
+ # branch: branch (eg. stable/arno)
+ stream:
+ - master:
+ branch: 'master'
+
+ project: 'bottlenecks'
+ somevar: 'foo'
+
+########################
+# job templates
+########################
+
+- job-template:
+ name: 'bottlenecks-test'
+
+ project-type: freestyle
+
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 10
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ builders:
+ - shell: |
+ echo "Hello world from bottlenecks"
+
+
+- job-template:
+ name: 'bottlenecks-verify'
+
+ node: master
+
+ project-type: freestyle
+
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 10
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: 'master'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
+
+ wrappers:
+ - ssh-agent-credentials:
+ user: '{ssh-credentials}'
+
+ triggers:
+ - gerrit:
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: 'false'
+ exclude-trivial-rebase: 'false'
+ exclude-no-code-change: 'false'
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: 'recheck'
+ - comment-added-contains-event:
+ comment-contains-value: 'reverify'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/master'
+
+ builders:
+ - shell:
+ !include-raw docu-build.sh