Skip to content

Commit

Permalink
Improved publication status reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
gkholman committed May 30, 2024
1 parent 78f638a commit 55141c3
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions RealtaServerAnt.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project default="-qatest" xmlns:if="ant:if" xmlns:unless="ant:unless">

<!--
2024-05-30 13:50z
2024-05-30 14:20z
This Ant project interacts with the Realta Server API using curl.
Expand Down Expand Up @@ -189,20 +189,20 @@
</condition>
<echo message="Status: ${status}"/>

<echo message="Fetching log ${fileupload}.realta.txt"/>
<exec executable="curl" errorproperty="errReturnLog"
resultproperty="returnFetchLog"
output="${fileupload}.log.txt">
<arg value="--request"/><arg value="GET"/>
<arg value="--url"/>
<arg value="https://${servername}/jobs/${jobid}/logs"/>
<arg value="--location"/>
<arg value="--header"/><arg value="authorization: Bearer ${token}"/>
</exec>
<loadfile property="returnLogDisplay" srcfile="${fileupload}.log.txt"/>
<echo message="${returnLogDisplay}"/>

<sequential if:set="job-done">
<echo message="Fetching log ${fileupload}.realta.txt"/>
<exec executable="curl" errorproperty="errReturnLog"
resultproperty="returnFetchLog"
output="${fileupload}.log.txt">
<arg value="--request"/><arg value="GET"/>
<arg value="--url"/>
<arg value="https://${servername}/jobs/${jobid}/logs"/>
<arg value="--location"/>
<arg value="--header"/><arg value="authorization: Bearer ${token}"/>
</exec>
<loadfile property="returnLogDisplay" srcfile="${fileupload}.log.txt"/>
<echo message="${returnLogDisplay}"/>

<condition property="job-ready">
<or>
<equals arg1="${status}" arg2="FINISHED"/>
Expand Down

0 comments on commit 55141c3

Please sign in to comment.