Added step for copying successful build
diff --git a/releng/org.eclipse.graphiti.releng/buckminster.ant b/releng/org.eclipse.graphiti.releng/buckminster.ant
index 5dae426..afeee71 100644
--- a/releng/org.eclipse.graphiti.releng/buckminster.ant
+++ b/releng/org.eclipse.graphiti.releng/buckminster.ant
@@ -65,18 +65,32 @@
<delete file="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2/content.xml" />
</target>
+ <target name="copy.sites" >
+ <echo message="Deleting old update site from downloads area" />
+ <delete dir="${root}/last_success/site.p2/" failonerror="true" />
+
+ <echo message="Deleting old ZIP archive from downloads area" />
+ <delete dir="${root}/last_success/site.p2.zip/" failonerror="true" />
+
+ <echo message="Promoting site.p2" />
+ <copydir dest="${root}/last_success/site.p2/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" />
+
+ <echo message="Promoting site.p2.zip" />
+ <copydir dest="${root}/last_success/site.p2.zip/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2.zip" />
+ </target>
+
<target name="promote.sites" >
<echo message="Deleting old update site from downloads area" />
<delete dir="${download.area}/updates/nightly/" failonerror="true" />
<echo message="Promoting site.p2" />
- <copydir dest="${download.area}/updates/nightly/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2" />
+ <copydir dest="${download.area}/updates/nightly/" src="${root}/last_success/site.p2" />
<echo message="Deleting old ZIP archive from downloads area" />
<delete dir="${download.area}/archives/nightly/" failonerror="true" />
<echo message="Promoting site.p2.zip" />
- <copydir dest="${download.area}/archives/nightly/" src="${root}/buildroot/buckminster.build/org.eclipse.graphiti.site_1.0.0-eclipse.feature/site.p2.zip" />
+ <copydir dest="${download.area}/archives/nightly/" src="${root}/last_success/site.p2.zip" />
</target>
</project>
diff --git a/releng/org.eclipse.graphiti.releng/buckminster.cspec b/releng/org.eclipse.graphiti.releng/buckminster.cspec
index a7d3369..1be8c9a 100644
--- a/releng/org.eclipse.graphiti.releng/buckminster.cspec
+++ b/releng/org.eclipse.graphiti.releng/buckminster.cspec
@@ -41,6 +41,16 @@
<cs:public name="readable.index" base="site/"/>
</cs:products>
</cs:public>
+ <cs:public name="copy.sites" actor="ant">
+ <cs:actorProperties>
+ <cs:property key="buildFile" value="buckminster.ant"/>
+ <cs:property key="targets" value="copy.sites"/>
+ </cs:actorProperties>
+ <cs:properties>
+ <cs:property key="root" value="${WORKSPACE}"/>
+ </cs:properties>
+ <cs:products alias="action.output" base="${graphiti.download.area}/updates/nightly/"/>
+ </cs:public>
<cs:public name="promote.sites" actor="ant">
<cs:actorProperties>
<cs:property key="buildFile" value="buckminster.ant"/>