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

Commit

Permalink
Modify slack macro in ant buildfile to include specifying the channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Smith committed Aug 24, 2016
1 parent b00893e commit 837a630
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1526,11 +1526,12 @@
<macrodef name="SLACK.send">
<attribute name="conf"/>
<attribute name="colour"/>
<attribute name="channel"/>
<attribute name="message"/>
<sequential>
<exec executable="bash" failonerror="true">
<arg value="-c"/>
<arg value="echo -e '@{message}' | ${tools.slacktee}/bin/slacktee.sh -p --config @{conf} -a @{colour}"/>
<arg value="echo -e '@{message}' | ${tools.slacktee}/bin/slacktee.sh -p --config @{conf} -a @{colour} -c @{channel}"/>
</exec>
</sequential>
</macrodef>
Expand All @@ -1550,7 +1551,7 @@
<arg value="${git.repo.project.data}"/>
<arg value="${git.repo.project.products}"/>
</exec>
<SLACK.send conf="${tools.slacktee}/conf/aggr-ant.conf" colour="good"
<SLACK.send conf="${tools.slacktee}/conf/aggr-ant.conf" colour="good" channel="events-publications"
message="${diff.between.publications}"/>
</then>
</if>
Expand Down

0 comments on commit 837a630

Please sign in to comment.