mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-30 04:55:21 +00:00
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10464 71c3de6d-444a-0410-be80-ed276b4c234a
28 lines
905 B
Python
28 lines
905 B
Python
# definition of the IPS package.
|
|
# see https://updatecenter2.dev.java.net/maven-makepkgs-plugin/ 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="hudson", version=version+",0-0")
|
|
pkg.update({
|
|
"attributes" : {
|
|
"pkg.summary" : "Hudson",
|
|
"pkg.description" : "Extensible continuous integration system",
|
|
}
|
|
})
|
|
|
|
|
|
pkg.addfile("/usr/local/bin/hudson.war",{"file":"./target/hudson.war"})
|
|
pkg.addfile("/var/svc/manifest/application/hudson.xml",{"file":"../ips/hudson.xml"})
|
|
# this is the Hudson home directory
|
|
pkg.mkdirs("/var/lib/hudson")
|
|
|
|
# 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
|