提交 c2235a43 编写于 作者: K kohsuke

create IPS package during a release

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10464 71c3de6d-444a-0410-be80-ed276b4c234a
上级 100f0990
# definition of the IPS package.
# see http://wiki.updatecenter.java.net/Wiki.jsp?page=UC20.Docs.Packaging for more about this
# see https://updatecenter2.dev.java.net/maven-makepkgs-plugin/ for more about this
import builder;
pkg = builder.build_pkg(name="hudson", version="1.223,0-0")
# 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",
......@@ -12,11 +17,11 @@ pkg.update({
})
pkg.addfile("/usr/local/bin/hudson.war",{"file":"./hudson.war"})
pkg.addfile("/var/svc/manifest/application/hudson.xml",{"file":"hudson.xml"})
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: how do I register SMF?
# 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
......@@ -36,7 +36,7 @@
<artifactId>maven-release-plugin</artifactId>
<configuration>
<!-- enable release profile during the release -->
<prepareVerifyArgs>-P release</prepareVerifyArgs>
<prepareVerifyArgs>-P release,ips</prepareVerifyArgs>
<!--
also run assembly during the release.
http://www.nabble.com/Release-Plugin%3A-Include-assemblies-for-deploying-tf2642295s177.html#a7377938
......
......@@ -407,5 +407,27 @@
</repository>
</repositories>
</profile>
<profile>
<!-- profile for creating Hudson IPS package -->
<id>ips</id>
<build>
<plugins>
<plugin>
<groupId>org.jvnet.updatecenter2</groupId>
<artifactId>maven-makepkgs-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
<configuration>
<proto>../ips/proto.py</proto>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册