blob: 384f39fb730a7092f4602eb2e153aa07ec74c339 [file] [log] [blame]
<hudson.tasks.Ant>
<targets>all</targets>
<%
String buildFile = "..";
if (job.getDeployment() instanceof HudsonDeployment) {
HudsonDeployment deployment = (HudsonDeployment) job.getDeployment();
if (deployment.getAntName() != null) {
%>
<antName><%=deployment.getAntName()%></antName>
<%
}
if (deployment.getGenerationLocation() instanceof SVNGenerationLocation) {
SVNGenerationLocation svnGenerationLocation = (SVNGenerationLocation) deployment.getGenerationLocation();
buildFile = "svn/" + svnGenerationLocation.getSvnLocation().getLocalPath() + "/" + svnGenerationLocation.getFolderName() + "/" + new GenerationHelper().getJobName(ctx, job);
}
if (deployment.getGenerationLocation() instanceof GITGenerationLocation) {
GITGenerationLocation gitGenerationLocation = (GITGenerationLocation) deployment.getGenerationLocation();
buildFile = "git/" + gitGenerationLocation.getGitLocation().getLocalPath() + "/" + gitGenerationLocation.getFolderName() + "/" + new GenerationHelper().getJobName(ctx, job);
}
}
%>
<buildFile><%=buildFile%>/releng/build.xml</buildFile>
</hudson.tasks.Ant>