Log common data (Buck version, etc.) in Scuba counter snapshot events
Log common data (Buck version, etc.) in Scuba counter snapshot events

Summary:Previously, `ScubaBuildListener` only logged the username
and repository name when logging counter snapshot events.

This diff consolidates the logic to also include the common data
(Buck version, current command, etc.) when logging Scuba counter
snapshot events. We previously included this only when logging
other rule events to Scuba.

Since we no longer need `counterEnvironment` to be passed down,
I removed it.

Test Plan:New unit test added.
  ant java-test -Dtest.class=ScubaBuildListenerTest
  buck test //test/com/facebook/buck/event/listener:

Reviewed By: Coneko

fb-gh-sync-id: 5c571c1
shipit-source-id: 5c571c1

sdwilsh/buck,shybovycha/buck,davido/buck,nguyentruongtho/buck,Addepar/buck,facebook/buck,Addepar/buck,Dominator008/buck,nguyentruongtho/buck,dsyang/buck,Addepar/buck,facebook/buck,LegNeato/buck,Dominator008/buck,raviagarwal7/buck,raviagarwal7/buck,vschs007/buck,zhan-xiong/buck,Dominator008/buck,darkforestzero/buck,OkBuilds/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,JoelMarcey/buck,JoelMarcey/buck,shs96c/buck,zpao/buck,vschs007/buck,illicitonion/buck,justinmuller/buck,davido/buck,ilya-klyuchnikov/buck,bocon13/buck,justinmuller/buck,ilya-klyuchnikov/buck,illicitonion/buck,robbertvanginkel/buck,shybovycha/buck,raviagarwal7/buck,illicitonion/buck,justinmuller/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,LegNeato/buck,SeleniumHQ/buck,grumpyjames/buck,sdwilsh/buck,ilya-klyuchnikov/buck,OkBuilds/buck,zhan-xiong/buck,marcinkwiatkowski/buck,ilya-klyuchnikov/buck,shybovycha/buck,davido/buck,dsyang/buck,shybovycha/buck,shs96c/buck,marcinkwiatkowski/buck,rmaz/buck,robbertvanginkel/buck,marcinkwiatkowski/buck,shs96c/buck,robbertvanginkel/buck,clonetwin26/buck,bocon13/buck,raviagarwal7/buck,nguyentruongtho/buck,rmaz/buck,sdwilsh/buck,justinmuller/buck,grumpyjames/buck,k21/buck,davido/buck,ilya-klyuchnikov/buck,daedric/buck,grumpyjames/buck,zhan-xiong/buck,daedric/buck,LegNeato/buck,nguyentruongtho/buck,clonetwin26/buck,SeleniumHQ/buck,JoelMarcey/buck,darkforestzero/buck,clonetwin26/buck,dsyang/buck,Addepar/buck,k21/buck,LegNeato/buck,vschs007/buck,zhan-xiong/buck,shs96c/buck,facebook/buck,OkBuilds/buck,robbertvanginkel/buck,justinmuller/buck,vschs007/buck,marcinkwiatkowski/buck,Addepar/buck,OkBuilds/buck,raviagarwal7/buck,vschs007/buck,janicduplessis/buck,marcinkwiatkowski/buck,kageiit/buck,shybovycha/buck,raviagarwal7/buck,marcinkwiatkowski/buck,rmaz/buck,clonetwin26/buck,romanoid/buck,daedric/buck,illicitonion/buck,daedric/buck,JoelMarcey/buck,zhan-xiong/buck,shs96c/buck,raviagarwal7/buck,romanoid/buck,davido/buck,rmaz/buck,bocon13/buck,SeleniumHQ/buck,OkBuilds/buck,daedric/buck,dsyang/buck,Dominator008/buck,brettwooldridge/buck,JoelMarcey/buck,k21/buck,rmaz/buck,SeleniumHQ/buck,SeleniumHQ/buck,zpao/buck,bocon13/buck,shybovycha/buck,darkforestzero/buck,vschs007/buck,Addepar/buck,dsyang/buck,zhan-xiong/buck,romanoid/buck,JoelMarcey/buck,clonetwin26/buck,janicduplessis/buck,dsyang/buck,Addepar/buck,bocon13/buck,robbertvanginkel/buck,janicduplessis/buck,illicitonion/buck,romanoid/buck,bocon13/buck,romanoid/buck,dsyang/buck,clonetwin26/buck,Addepar/buck,davido/buck,zhan-xiong/buck,illicitonion/buck,romanoid/buck,k21/buck,kageiit/buck,JoelMarcey/buck,davido/buck,daedric/buck,brettwooldridge/buck,janicduplessis/buck,raviagarwal7/buck,k21/buck,robbertvanginkel/buck,zpao/buck,Dominator008/buck,daedric/buck,shybovycha/buck,janicduplessis/buck,darkforestzero/buck,justinmuller/buck,shybovycha/buck,nguyentruongtho/buck,grumpyjames/buck,zpao/buck,brettwooldridge/buck,vschs007/buck,rmaz/buck,brettwooldridge/buck,justinmuller/buck,shybovycha/buck,romanoid/buck,romanoid/buck,romanoid/buck,robbertvanginkel/buck,k21/buck,sdwilsh/buck,dsyang/buck,dsyang/buck,marcinkwiatkowski/buck,justinmuller/buck,shs96c/buck,clonetwin26/buck,OkBuilds/buck,grumpyjames/buck,grumpyjames/buck,nguyentruongtho/buck,illicitonion/buck,shs96c/buck,illicitonion/buck,darkforestzero/buck,LegNeato/buck,shs96c/buck,OkBuilds/buck,dsyang/buck,darkforestzero/buck,daedric/buck,kageiit/buck,dsyang/buck,JoelMarcey/buck,sdwilsh/buck,LegNeato/buck,vschs007/buck,daedric/buck,sdwilsh/buck,SeleniumHQ/buck,k21/buck,justinmuller/buck,janicduplessis/buck,vschs007/buck,marcinkwiatkowski/buck,davido/buck,darkforestzero/buck,bocon13/buck,dsyang/buck,JoelMarcey/buck,robbertvanginkel/buck,darkforestzero/buck,ilya-klyuchnikov/buck,vschs007/buck,Addepar/buck,zpao/buck,dsyang/buck,sdwilsh/buck,SeleniumHQ/buck,shybovycha/buck,facebook/buck,clonetwin26/buck,robbertvanginkel/buck,vschs007/buck,Addepar/buck,darkforestzero/buck,LegNeato/buck,Dominator008/buck,zhan-xiong/buck,davido/buck,shs96c/buck,JoelMarcey/buck,OkBuilds/buck,sdwilsh/buck,Dominator008/buck,davido/buck,LegNeato/buck,vschs007/buck,raviagarwal7/buck,grumpyjames/buck,illicitonion/buck,brettwooldridge/buck,daedric/buck,k21/buck,illicitonion/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,zhan-xiong/buck,janicduplessis/buck,clonetwin26/buck,vschs007/buck,k21/buck,marcinkwiatkowski/buck,davido/buck,kageiit/buck,raviagarwal7/buck,robbertvanginkel/buck,darkforestzero/buck,clonetwin26/buck,zhan-xiong/buck,kageiit/buck,sdwilsh/buck,sdwilsh/buck,bocon13/buck,raviagarwal7/buck,ilya-klyuchnikov/buck,justinmuller/buck,daedric/buck,clonetwin26/buck,janicduplessis/buck,zhan-xiong/buck,sdwilsh/buck,facebook/buck,shs96c/buck,ilya-klyuchnikov/buck,k21/buck,Dominator008/buck,marcinkwiatkowski/buck,SeleniumHQ/buck,grumpyjames/buck,Addepar/buck,brettwooldridge/buck,LegNeato/buck,Dominator008/buck,daedric/buck,SeleniumHQ/buck,OkBuilds/buck,JoelMarcey/buck,SeleniumHQ/buck,sdwilsh/buck,clonetwin26/buck,robbertvanginkel/buck,romanoid/buck,rmaz/buck,rmaz/buck,rmaz/buck,shybovycha/buck,OkBuilds/buck,darkforestzero/buck,LegNeato/buck,brettwooldridge/buck,illicitonion/buck,OkBuilds/buck,rmaz/buck,bocon13/buck,ilya-klyuchnikov/buck,SeleniumHQ/buck,k21/buck,grumpyjames/buck,brettwooldridge/buck,LegNeato/buck,grumpyjames/buck,janicduplessis/buck,rmaz/buck,shs96c/buck,darkforestzero/buck,daedric/buck,zpao/buck,janicduplessis/buck,Dominator008/buck,justinmuller/buck,raviagarwal7/buck,janicduplessis/buck,zhan-xiong/buck,darkforestzero/buck,facebook/buck,grumpyjames/buck,OkBuilds/buck,illicitonion/buck,illicitonion/buck,romanoid/buck,justinmuller/buck,justinmuller/buck,shs96c/buck,Dominator008/buck,bocon13/buck,bocon13/buck,romanoid/buck,clonetwin26/buck,janicduplessis/buck,davido/buck,k21/buck,brettwooldridge/buck,davido/buck,Dominator008/buck,JoelMarcey/buck,grumpyjames/buck,nguyentruongtho/buck,zpao/buck,Addepar/buck,ilya-klyuchnikov/buck,raviagarwal7/buck,rmaz/buck,robbertvanginkel/buck,Addepar/buck,kageiit/buck,SeleniumHQ/buck,k21/buck,zhan-xiong/buck,shybovycha/buck,brettwooldridge/buck,bocon13/buck,marcinkwiatkowski/buck,robbertvanginkel/buck,shybovycha/buck,LegNeato/buck,JoelMarcey/buck,LegNeato/buck,shs96c/buck,marcinkwiatkowski/buck,brettwooldridge/buck,romanoid/buck,rmaz/buck,ilya-klyuchnikov/buck,OkBuilds/buck,sdwilsh/buck,facebook/buck,kageiit/buck