push the signing to a separate profile so that developers don't have to do it during normal build.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11053 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-07-28 22:38:21 +00:00
1 parent 5d0a9d7b6a
commit da79bbabbc
2 files changed
+30 -16

No files matched your search

+2 -2
View File
@@ -35,8 +35,8 @@
<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<!-- enable release profile during the release -->
<prepareVerifyArgs>-P release,ips</prepareVerifyArgs>
<!-- enable release profile during the release, create IPS package, and sign bits. -->
<prepareVerifyArgs>-P release,ips,sign</prepareVerifyArgs>
<!--
also run assembly during the release.
http://www.nabble.com/Release-Plugin%3A-Include-assemblies-for-deploying-tf2642295s177.html#a7377938
+28 -14
View File
@@ -57,20 +57,6 @@
<goal>run</goal>
</goals>
</execution>
<!-- sign the war -->
<execution>
<id>signWar</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- see ../jnlp-agent/pom.xml for details -->
<signjar jar="target/hudson.war" alias="${hudson.sign.alias}" keystore="${hudson.sign.keystore}" storepass="${hudson.sign.storepass}" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
@@ -429,5 +415,33 @@
</plugins>
</build>
</profile>
<profile>
<!-- sign war -->
<id>sign</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- sign the war -->
<execution>
<id>signWar</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- see ../jnlp-agent/pom.xml for details -->
<signjar jar="target/hudson.war" alias="${hudson.sign.alias}" keystore="${hudson.sign.keystore}" storepass="${hudson.sign.storepass}" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>