BuildbotNotes: buildbot.xml

File buildbot.xml, 4.3 KB (added by rme, 4 months ago)

SMF manifest for buildbot

Line 
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3
4<!--
5
6Copyright (c) 2007, Matthew Flanagan
7All rights reserved.
8
9Redistribution and use in source and binary forms, with or without modification,
10are permitted provided that the following conditions are met:
11
12    1. Redistributions of source code must retain the above copyright notice,
13       this list of conditions and the following disclaimer.
14
15    2. Redistributions in binary form must reproduce the above copyright
16       notice, this list of conditions and the following disclaimer in the
17       documentation and/or other materials provided with the distribution.
18
19    3. Neither the name of the project nor the names of its contributors may
20       be used to endorse or promote products derived from this software
21       without specific prior written permission.
22
23THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
27ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
34-->
35
36<service_bundle type='manifest' name='buildbot'>
37
38<service name='site/application/buildbot' type='service' version='2'>
39
40        <dependency name='filesystem_local'
41                grouping='require_all'
42                restart_on='none'
43                type='service'>
44                <service_fmri value='svc:/system/filesystem/local:default'/>
45        </dependency>
46
47        <dependency name='milestone_network'
48                grouping='require_all'
49                restart_on='none'
50                type='service'>
51                <service_fmri value='svc:/milestone/network:default'/>
52        </dependency>
53
54    <method_context>
55        <method_credential user='buildbot' group='buildbot' />
56        <method_environment>
57            <envvar name='PATH' value='/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin' />
58        </method_environment>
59    </method_context>
60
61        <exec_method
62                type='method'
63                name='start'
64                exec='/opt/local/bin/buildslave start --quiet %{buildbot/config}'
65                timeout_seconds='60' />
66
67        <exec_method
68                type='method'
69                name='stop'
70                exec='/opt/local/bin/buildslave stop --quiet %{buildbot/config}'
71                timeout_seconds='60' />
72
73        <exec_method
74                type='method'
75                name='restart'
76                exec='/opt/local/bin/buildslave restart --quiet %{buildbot/config}'
77                timeout_seconds='60' />
78
79        <exec_method
80                type='method'
81                name='refresh'
82                exec='/usr/local/bin/buildslave reconfig --quiet %{buildbot/config}'
83                timeout_seconds='60' />
84
85        <property_group name="startd" type="framework">
86                <!-- sub-process core dumps shouldn't restart
87                        session -->
88                <propval name='ignore_error' type='astring'
89                        value='core,signal' />
90        </property_group>
91
92    <!-- 'default' instance is the buildbot master -->
93    <instance name='default' enabled='false'>
94        <property_group name='buildbot' type='application'>
95            <propval name='config' type='astring' value='/home/buildbot/ccl' />
96        </property_group>
97    </instance>
98
99        <stability value='Evolving' />
100
101        <template>
102                <common_name>
103                        <loctext xml:lang='C'>
104                                buildbot automated test environment.
105                        </loctext>
106                </common_name>
107                <documentation>
108                        <doc_link name='buildbot.sourceforge.net'
109                                uri='http://buildbot.sourceforge.net' />
110                </documentation>
111        </template>
112</service>
113
114</service_bundle>
115