mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +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>
|
<artifactId>org.eclipse.cdt.repo</artifactId>
|
||||||
<packaging>eclipse-repository</packaging>
|
<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>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>production</id>
|
<id>production</id>
|
||||||
<properties>
|
|
||||||
<cdt-install>/home/data/httpd/download.eclipse.org/tools/cdt/builds/hudson/cdt-nightly</cdt-install>
|
|
||||||
</properties>
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<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>
|
<plugin>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -34,18 +82,28 @@
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<tasks>
|
<tasks>
|
||||||
<mkdir dir="${cdt-install}"/>
|
<delete includeemptydirs="false">
|
||||||
<delete>
|
|
||||||
<fileset dir="${cdt-install}">
|
<fileset dir="${cdt-install}">
|
||||||
<include name="**" />
|
<include name="**" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</delete>
|
</delete>
|
||||||
<copy
|
<zip
|
||||||
file="target/org.eclipse.cdt.repo.zip"
|
dest="${cdt-install}/org.eclipse.cdt.repo.${unqualifiedVersion}.${buildQualifier}.zip">
|
||||||
tofile="${cdt-install}/org.eclipse.cdt.repo.${unqualifiedVersion}.${buildQualifier}.zip"/>
|
<fileset dir="target/checksumFix">
|
||||||
<unzip
|
<include name="**" />
|
||||||
src="target/org.eclipse.cdt.repo.zip"
|
</fileset>
|
||||||
dest="${cdt-install}"/>
|
</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>
|
</tasks>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
|
Loading…
Add table
Reference in a new issue