Skip to content
Snippets Groups Projects
Commit ece24db9 authored by david_williams's avatar david_williams
Browse files

fix fail logic

parent 70d48850
No related branches found
No related tags found
No related merge requests found
...@@ -46,15 +46,6 @@ ...@@ -46,15 +46,6 @@
unless="env.PROJECT_PROJECTS" /> unless="env.PROJECT_PROJECTS" />
<fail <fail
unless="projectname" /> unless="projectname" />
<fail
message="Nothing to copy. Build failed earlier.">
<condition>
<not>
<available
file="${env.PROJECT_PROJECTS}/${projectname}/workdir/${buildLabel}" />
</not>
</condition>
</fail>
<property <property
name="labelfile" name="labelfile"
value="${env.PROJECT_PROJECTS}/${projectname}/workdir/label.properties" /> value="${env.PROJECT_PROJECTS}/${projectname}/workdir/label.properties" />
...@@ -68,5 +59,14 @@ ...@@ -68,5 +59,14 @@
<property <property
name="localStampedArtifactsDirectory" name="localStampedArtifactsDirectory"
value="${localArtifactsDirectory}/${cctimestamp}" /> value="${localArtifactsDirectory}/${cctimestamp}" />
<fail
message="Build probably failed early. Found nothing to copy at ${env.PROJECT_PROJECTS}/${projectname}/workdir/${buildLabel}">
<condition>
<not>
<available
file="${env.PROJECT_PROJECTS}/${projectname}/workdir/${buildLabel}" />
</not>
</condition>
</fail>
</target> </target>
</project> </project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment