forked from SoftwareAG/sagdevops-ci-assets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_QuiesceDeployment.xml
31 lines (25 loc) · 1.22 KB
/
build_QuiesceDeployment.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
<?xml version="1.0"?>
<project basedir="." name="build_Quiesce_Deployment_Mode">
<!--
This build file suspends broker/messaging and jms triggers on the file system.
This build is intended to be used in your build and deploy process.
Run the targets in here after checking out your sources from VCS.
The targets in here will manipulate the node.ndf files in your source dirctory
and suspend the tiriggers, so that with the deployment the triggers are not
enabled automatically.
-->
<target name="bda.quiesce.deployment.start" depends="bda.quiesce.deployment.suspendTriggers">
<log msg="Suspended triggers" />
</target>
<condition property="suspendTriggersInSource">
<equals arg1="${config.build.suspendTriggersInSource}" arg2="true" />
</condition>
<target name="bda.quiesce.deployment.suspendTriggers" if="suspendTriggersInSource">
<property name="groovyScript.SuspendTriggersSource" location="resources/quiesce/SuspendTriggersSource.groovy" />
<log msg="Suspending trigger using groovy script '${groovyScript.SuspendTriggersSource}" />
<groovy src="${groovyScript.SuspendTriggersSource}">
<arg line="-pathToIsPackageSource ${isProjectsDir}/" />
<arg line="-triggerType all" />
</groovy>
</target>
</project>