提交 89594df7 编写于 作者: K Kohsuke Kawaguchi

Merge pull request #1664 from stephenc/remove-ips-packaging

Now that packaging is in https://github.com/jenkinsci/packaging and give...
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<!--
Copyright (C) 2007 Paul Oswald
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<service_bundle type="manifest" name="Jenkins">
<service name="application/jenkins" type="service" version="1">
<create_default_instance enabled="true" />
<!-- Only one instance of Jenkins should ever run per server -->
<single_instance />
<dependency name="multi-user-server" type="service" grouping="require_all" restart_on="none">
<service_fmri value="svc:/milestone/multi-user-server" />
</dependency>
<method_context>
<method_credential user='root' group='root' />
<method_environment>
<envvar name='PATH' value='/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/local/bin:/usr/local/sbin:/usr/sfw/bin' />
<envvar name='JENKINS_HOME' value='/var/lib/jenkins' />
</method_environment>
</method_context>
<!-- Set the JENKINS_HOME env variable, and run the war file in /apps/jenkins/jenkins.war -->
<exec_method type="method" name="start" exec="java -Xmx512m -jar /usr/local/bin/jenkins.war" timeout_seconds="0"/>
<exec_method type="method" name="stop" exec=":kill -TERM" timeout_seconds="30"/>
<!-- We are going to be kicking off a single child process so we want Wait mode-->
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='child' />
</property_group>
<stability value="Unstable" />
<template>
<common_name>
<loctext xml:lang='C'>Jenkins Continuous Build Server</loctext>
</common_name>
<documentation>
<doc_link name='jenkins-ci.org' uri='http://jenkins-ci.org/' />
</documentation>
</template>
</service>
</service_bundle>
# The MIT License
#
# Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
# definition of the IPS package.
# see https://wikis.oracle.com/display/IpsBestPractices/Producing+and+Maintaining+Packages for more about this
import builder;
# IPS can't do SNAPSHOT
version = builder.props['version']
if version.endswith("-SNAPSHOT"):
version = version[:-9];
pkg = builder.build_pkg(name="jenkins", version=version+",0-0")
pkg.update({
"attributes" : {
"pkg.summary" : "Jenkins",
"pkg.description" : "Extensible continuous integration system",
}
})
# restart_fmri instructs IPS to reload the manifest
pkg.addfile("/usr/local/bin/jenkins.war",{"file":"./target/jenkins.war"})
pkg.addfile("/var/svc/manifest/application/jenkins.xml",{"file":"../ips/jenkins.xml","restart_fmri":"svc:/system/manifest-import:default"})
# this is the Hudson home directory
pkg.mkdirs("/var/lib/jenkins")
# TODO: register SMF when the feature is available?
# see http://www.pauloswald.com/article/29/hudson-solaris-smf-manifest
# see http://blogs.sun.com/wittyman/entry/postgresql_packages_from_ips_repository
This directory hosts files to create Solaris IPS packages.
To build, "mvn -P ips package" from the main/war directory.
Current status
==============
Auto-installation of SMF fails due to:
http://defect.opensolaris.org/bz/show_bug.cgi?id=5742
http://defect.opensolaris.org/bz/show_bug.cgi?id=5743
......@@ -515,31 +515,6 @@ THE SOFTWARE.
</build>
<profiles>
<profile>
<!-- profile for creating Jenkins IPS package -->
<id>ips</id>
<build>
<plugins>
<plugin>
<groupId>org.jvnet.updatecenter2</groupId>
<artifactId>maven-makepkgs-plugin</artifactId>
<!-- version specified in grandparent pom -->
<executions>
<execution>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
<configuration>
<python>python2.5</python>
<proto>../ips/proto.py</proto>
<attach>false</attach>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- sign war -->
<id>sign</id>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册