Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Add ant wrappers for stats scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Aug 30, 2016
1 parent e3ce930 commit 2c0cc3f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,59 @@
<get src="${jenkins.url.to.trigger.publication}" dest="${temp.dir}/get.out"/>
</target>

<!--
*************************************
*** ***
*** S T A T S T A R G E T S ***
*** ***
*************************************
-->

<!--
Runs the stats-sync script to update the local stats cache
-->
<target name="stats.sync">
<echo>Updating local stats cache</echo>
<exec executable="bash" failonerror="true">
<arg value="${utilities.dir}/stats-sync.sh"/>
</exec>
</target>

<!--
Runs the stats-generate script for yesterday
-->
<target name="stats.daily">
<echo>Triggering daily stats job</echo>
<exec executable="bash" failonerror="true" outputproperty="stats.daily.output">
<arg value="${utilities.dir}/stats-generate.sh"/>
<arg value="day"/>
</exec>
<SLACK.send conf="${tools.slacktee}/conf/repo-jenkins.conf" colour="good" channel="stats"
message="${stats.daily.output}"/>
</target>

<!--
Runs the stats-generate script for the previous month
-->
<target name="stats.monthly">
<echo>Triggering monthly stats job</echo>
<exec executable="bash" failonerror="true">
<arg value="${utilities.dir}/stats-generate.sh"/>
<arg value="month"/>
</exec>
</target>

<!--
Runs the stats-generate script for the previous year
-->
<target name="stats.yearly">
<echo>Triggering yearly stats job</echo>
<exec executable="bash" failonerror="true">
<arg value="${utilities.dir}/stats-generate.sh"/>
<arg value="year"/>
</exec>
</target>

<!--
****************************************************
*** ***
Expand Down

0 comments on commit 2c0cc3f

Please sign in to comment.