1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Bug 545624 - Disable nightly upload in "production"

Will be replaced by upload step in pipeline

Change-Id: I17ca9b105994e389366815023170456b5be7fda8
This commit is contained in:
William Riley 2019-03-21 05:18:30 -05:00
parent d87b844e12
commit 1d7ed13b6b

View file

@ -18,65 +18,4 @@
<build>
<finalName>${project.artifactId}</finalName>
</build>
<profiles>
<profile>
<id>production</id>
<properties>
<cdt-download-dir>/home/data/httpd/download.eclipse.org/${repo-path}</cdt-download-dir>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>verify</phase>
<configuration>
<target>
<!-- first modify the artifacts.jar file -->
<!-- note that our zip file is already generated and won't have nor needs this change -->
<copy file="p2.xsl" todir="${project.build.directory}"/>
<copy file="antArtifactsUpdater.xml" todir="${project.build.directory}"/>
<ant antfile="${project.build.directory}/antArtifactsUpdater.xml"/>
<!-- now promote the update build to our download area -->
<delete>
<fileset dir="${cdt-download-dir}">
<exclude name="rcp*/**"/>
</fileset>
</delete>
<copy includeemptydirs="false" todir="${cdt-download-dir}">
<fileset dir="target/repository">
<include name="**" />
</fileset>
</copy>
<!-- remove the packed files from the zip file to make it smaller -->
<unzip src="target/org.eclipse.cdt.repo.zip" dest="target/tmp"/>
<delete file="target/org.eclipse.cdt.repo.zip"/>
<delete>
<fileset dir="target/tmp">
<include name="plugins/*.pack.gz"/>
</fileset>
</delete>
<zip destfile="target/org.eclipse.cdt.repo.zip">
<fileset dir="target/tmp">
<include name="**"/>
</fileset>
</zip>
<delete dir="target/tmp"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>