-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.xml
64 lines (56 loc) · 1.84 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
62
63
64
<project name="FormulaForce" xmlns:sf="antlib:com.salesforce" basedir="." default="deploy">
<property name="sf.server" value="https://login.salesforce.com"/>
<import file="${basedir}/lib/exec_anon.xml"/>
<import file="${basedir}/lib/undeploy.xml"/>
<!-- Downloaded from Salesforce Tools page under Setup -->
<typedef
uri="antlib:com.salesforce"
resource="com/salesforce/antlib.xml"
classpath="${basedir}/lib/ant-salesforce.jar"/>
<!-- Import macros to install/uninstall packages -->
<import file="${basedir}/lib/ant-salesforce.xml"/>
<!-- Demo uninstall and install target -->
<target name="package.installdemo">
<uninstallPackage
namespace="fforce"
username="${sf.username}"
password="${sf.password}"/>
<installPackage
namespace="fforce"
version="1.0"
username="${sf.username}"
password="${sf.password}"/>
</target>
<!-- Retrieve package contents locally from packaging org -->
<target name="retrieve.package">
<sf:retrieve
username="${sf.username}"
password="${sf.password}"
retrieveTarget="${basedir}/src"
packageNames="FormulaForce"/>
</target>
<!-- Deploy -->
<target name="deploy" depends="undeploy">
<sf:deploy
username="${sf.username}"
password="${sf.password}"
serverurl="${sf.server}"
runAllTests="true"
deployRoot="${basedir}/src"/>
</target>
<target name="deploy.jenkins" depends="undeploy">
<sf:deploy
username="${sf.username}"
password="${sf.password}"
serverurl="${sf.server}"
runAllTests="true"
deployRoot="${basedir}/src"/>
<sf:deploy
username="${sf.package.username}"
password="${sf.package.password}"
serverurl="${sf.server}"
checkOnly="true"
runAllTests="true"
deployRoot="${basedir}/src"/>
</target>
</project>