mirror of https://github.com/jenkinsci/jenkins.git
sign jars that are needed for JNLP slave agents
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2144 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
parent
765dea3cc1
commit
be86dce26a
|
@ -10,7 +10,33 @@
|
||||||
<artifactId>jnlp-agent</artifactId>
|
<artifactId>jnlp-agent</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Hudson JNLP slave agent</name>
|
<name>Hudson JNLP slave agent</name>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>sign</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<!--
|
||||||
|
during the development, debug profile defined in ../pom.xml will cause
|
||||||
|
the jars to be signed by a self-certified dummy public key.
|
||||||
|
|
||||||
|
For release, you should define the real values in ~/.m2/settings.xml
|
||||||
|
-->
|
||||||
|
<alias>${hudson.sign.alias}</alias>
|
||||||
|
<storepass>${hudson.sign.storepass}</storepass>
|
||||||
|
<keystore>${hudson.sign.keystore}</keystore>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jvnet.hudson.main</groupId>
|
<groupId>org.jvnet.hudson.main</groupId>
|
||||||
|
|
15
pom.xml
15
pom.xml
|
@ -53,5 +53,18 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>debug</id>
|
||||||
|
<activation>
|
||||||
|
<activeByDefault>true</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<hudson.sign.alias>hudson</hudson.sign.alias>
|
||||||
|
<hudson.sign.keystore>../dummy.keystore</hudson.sign.keystore>
|
||||||
|
<hudson.sign.storepass>hudson</hudson.sign.storepass>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
|
@ -137,6 +137,11 @@
|
||||||
<attribute name="Main-Class" value="hudson.remoting.Launcher" />
|
<attribute name="Main-Class" value="hudson.remoting.Launcher" />
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</jar>
|
||||||
|
<!-- see ../jnlp-agent/pom.xml for details -->
|
||||||
|
<signjar jar="target/${artifactId}-${version}-jdk14.jar"
|
||||||
|
alias="${hudson.sign.alias}"
|
||||||
|
keystore="${hudson.sign.keystore}"
|
||||||
|
storepass="${hudson.sign.storepass}" />
|
||||||
</tasks>
|
</tasks>
|
||||||
</configuration>
|
</configuration>
|
||||||
<goals>
|
<goals>
|
||||||
|
@ -179,6 +184,24 @@
|
||||||
</manifest>
|
</manifest>
|
||||||
</archive>
|
</archive>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>sign</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<!--
|
||||||
|
during the development, debug profile defined in ../pom.xml will cause
|
||||||
|
the jars to be signed by a self-certified dummy public key.
|
||||||
|
|
||||||
|
For release, you should define the real values in ~/.m2/settings.xml
|
||||||
|
-->
|
||||||
|
<alias>${hudson.sign.alias}</alias>
|
||||||
|
<storepass>${hudson.sign.storepass}</storepass>
|
||||||
|
<keystore>${hudson.sign.keystore}</keystore>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
12
war/pom.xml
12
war/pom.xml
|
@ -71,6 +71,13 @@
|
||||||
-->
|
-->
|
||||||
<!--scanIntervalSeconds>1</scanIntervalSeconds-->
|
<!--scanIntervalSeconds>1</scanIntervalSeconds-->
|
||||||
<webAppSourceDirectory>${basedir}/resources</webAppSourceDirectory>
|
<webAppSourceDirectory>${basedir}/resources</webAppSourceDirectory>
|
||||||
|
<!--realm for debug
|
||||||
|
<userRealms>
|
||||||
|
<userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
|
||||||
|
<name>hudsonRealm</name>
|
||||||
|
<config>src/realm.properties</config>
|
||||||
|
</userRealm>
|
||||||
|
</userRealms>-->
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
<systemProperty>
|
<systemProperty>
|
||||||
<name>HUDSON_HOME</name>
|
<name>HUDSON_HOME</name>
|
||||||
|
@ -124,6 +131,11 @@
|
||||||
<version>${version}</version>
|
<version>${version}</version>
|
||||||
<classifier>${hudsonClassifier}</classifier>
|
<classifier>${hudsonClassifier}</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jvnet.hudson.main</groupId>
|
||||||
|
<artifactId>jnlp-agent</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jvnet.hudson.main</groupId>
|
<groupId>org.jvnet.hudson.main</groupId>
|
||||||
<artifactId>hudson-core</artifactId>
|
<artifactId>hudson-core</artifactId>
|
||||||
|
|
Loading…
Reference in New Issue