summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/build.xml24
1 files changed, 23 insertions, 1 deletions
diff --git a/build/build.xml b/build/build.xml
index f528a32264..b6c701469a 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -1053,7 +1053,29 @@
<echo>Result: ${nightly.install.scp.result}</echo>
</target>
- <target name="nightly-publish" depends="nightly-teamcity-publish, nightly-download-publish">
+ <!-- Copies the nightly build artifacts to the download server. -->
+ <target name="nightly-demo-publish" if="nightly.demo.publish">
+ <fail unless="version.major" message="Major version must be defined in version.major"/>
+ <fail unless="version.minor" message="Major version must be defined in version.minor"/>
+
+
+ <!-- Publish to the demo server. -->
+ <property name="src" value="${result-path}/${product-file}-demo-${version.full}.war"/>
+ <property name="target" value="${nightly.demo.publish}/${version.major}.${version.minor}-${build.tag}.war"/>
+
+ <echo>Installing ${src} to ${target}</echo>
+
+ <!-- Copy the linux installation package and the JAR. -->
+ <exec executable="scp" searchpath="true" resultproperty="nightly.demo.install.scp.result">
+ <arg value="-B"/>
+ <arg value="${src}"/>
+ <arg value="${target}"/>
+ </exec>
+
+ <echo>Result: ${nightly.install.scp.result}</echo>
+ </target>
+
+ <target name="nightly-publish" depends="nightly-teamcity-publish, nightly-download-publish, nightly-demo-publish">
</target>