mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Set up cdt build to sign and deploy itself (i.e. no master).
This commit is contained in:
parent
58eed0ce42
commit
d93ef64c7a
1 changed files with 69 additions and 11 deletions
|
@ -15,14 +15,62 @@
|
|||
<artifactId>org.eclipse.cdt.repo</artifactId>
|
||||
<packaging>eclipse-repository</packaging>
|
||||
|
||||
<properties>
|
||||
<cdt-stream>juno</cdt-stream>
|
||||
<cdt-zipfile>org.eclipse.cdt.repo.zip</cdt-zipfile>
|
||||
<cdt-install>/home/data/httpd/download.eclipse.org/tools/cdt/builds/${cdt-stream}/nightly</cdt-install>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>production</id>
|
||||
<properties>
|
||||
<cdt-install>/home/data/httpd/download.eclipse.org/tools/cdt/builds/hudson/cdt-nightly</cdt-install>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.eclipse.dash.maven</groupId>
|
||||
<artifactId>eclipse-signing-maven-plugin</artifactId>
|
||||
<version>1.0.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>pack</id>
|
||||
<configuration>
|
||||
<inputFile>${project.build.directory}/${cdt-zipfile}</inputFile>
|
||||
</configuration>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>pack</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>sign</id>
|
||||
<configuration>
|
||||
<inputFile>${project.build.directory}/${cdt-zipfile}</inputFile>
|
||||
<signerInputDirectory>/home/data/httpd/download-staging.priv/tools/cdt/hudson</signerInputDirectory>
|
||||
</configuration>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>repack</id>
|
||||
<configuration>
|
||||
<inputFile>${project.build.directory}/signed/site_assembly.zip</inputFile>
|
||||
</configuration>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>pack</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>fixCheckSums</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>fixCheckSums</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
|
@ -34,18 +82,28 @@
|
|||
</goals>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<mkdir dir="${cdt-install}"/>
|
||||
<delete>
|
||||
<delete includeemptydirs="false">
|
||||
<fileset dir="${cdt-install}">
|
||||
<include name="**" />
|
||||
</fileset>
|
||||
</delete>
|
||||
<copy
|
||||
file="target/org.eclipse.cdt.repo.zip"
|
||||
tofile="${cdt-install}/org.eclipse.cdt.repo.${unqualifiedVersion}.${buildQualifier}.zip"/>
|
||||
<unzip
|
||||
src="target/org.eclipse.cdt.repo.zip"
|
||||
dest="${cdt-install}"/>
|
||||
<zip
|
||||
dest="${cdt-install}/org.eclipse.cdt.repo.${unqualifiedVersion}.${buildQualifier}.zip">
|
||||
<fileset dir="target/checksumFix">
|
||||
<include name="**" />
|
||||
</fileset>
|
||||
</zip>
|
||||
<copy includeemptydirs="false"
|
||||
todir="${cdt-install}">
|
||||
<fileset dir="target/checksumFix">
|
||||
<include name="**" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<chmod perm="g+w">
|
||||
<fileset dir="${cdt-install}">
|
||||
<include name="**"/>
|
||||
</fileset>
|
||||
</chmod>
|
||||
</tasks>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
|
Loading…
Add table
Reference in a new issue