Skip to content

Commit

Permalink
Update access to Realta API
Browse files Browse the repository at this point in the history
  • Loading branch information
gkholman committed May 30, 2024
1 parent 9992cfe commit b4c3c53
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 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">

<!--
2023-01-29 02:00z (Modified 20240530 for longer wait period)
2024-05-30 13:50z
This Ant project interacts with the Realta Server API using curl.
Expand Down Expand Up @@ -188,9 +188,26 @@
</and>
</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">
<condition property="job-ready">
<equals arg1="${status}" arg2="FINISHED"/>
<or>
<equals arg1="${status}" arg2="FINISHED"/>
<equals arg1="${status}" arg2="FINISHED_WARNING"/>
</or>
</condition>
<sequential if:set="job-ready">
<echo message="Fetching file ${fileupload}.realta.zip"/>
Expand Down

0 comments on commit b4c3c53

Please sign in to comment.