-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.xml
61 lines (48 loc) · 2.17 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0"?>
<project xmlns="antlib:org.apache.tools.ant" basedir="." default="up" xmlns:if="ant:if" xmlns:unless="ant:unless" >
<import file="antcc/main.xml" />
<target name="up" depends="jenkins,artifactory,restartcc,abe,deployer,designer" description="Provision all" />
<target name="deployer" depends="waitcc" description="Provision Deployer" >
<antcall target="apply">
<param name="t" value="templates/sag-deployer" />
</antcall>
</target>
<target name="abe" depends="waitcc" description="Provision Asset Build Environment" >
<antcall target="apply">
<param name="t" value="templates/sag-abe" />
</antcall>
</target>
<target name="designer" depends="waitcc" description="Provision Designer" >
<antcall target="apply">
<param name="t" value="templates/sag-designer" />
</antcall>
</target>
<target name="artifactory" depends="waitcc" description="Provision Artifactory" >
<property name="artifactory.download.url" value="https://bintray.com/jfrog/artifactory/download_file?file_path=jfrog-artifactory-oss-5.1.0.zip" />
<echo>Downloading Artifactory from ${artifactory.download.url} ...</echo>
<mkdir dir="build/temp" />
<get src="${artifactory.download.url}" dest="build/temp/artifactory.zip" usetimestamp="true" />
<unzip src="build/temp/artifactory.zip" dest="templates/artifactory/webapps" >
<patternset>
<include name="*/webapps/*.war"/>
</patternset>
<flattenmapper/>
</unzip>
<antcall target="apply">
<param name="t" value="templates/artifactory" />
</antcall>
</target>
<target name="jenkins" depends="waitcc" description="Provision Jenkins" >
<property name="jenkins.download.url" value="http://mirrors.jenkins.io/war-stable/latest/jenkins.war" />
<echo>Downloading Jenkins from ${jenkins.download.url} ...</echo>
<get src="${jenkins.download.url}" dest="templates/jenkins/webapps/jenkins.war" usetimestamp="true" />
<antcall target="apply">
<param name="t" value="templates/jenkins" />
</antcall>
</target>
<target name="connectmirrors" depends="waitcc" description="Connect to external mirrors" >
<antcall target="apply">
<param name="t" value="templates/mirrors" />
</antcall>
</target>
</project>