2

I am having buildbot master in one PC and slaves in other one. I need the buildbot build log url like (http://:8010/builders/xyz/builds/1) in slave PC for each build in an automated way.

Could someone help in getting the same.

Thanks in advance.

love
  • 1,000
  • 2
  • 16
  • 35

1 Answers1

3

You can use build properties:

self.getProperty("buildnumber")

or, if you need to include it in a command:

d = WithProperties('%s','buildnumber')
command = ['echo', d]

Then the url will be: BUILDBOT_URL/xyz/builds/BUILD_NUMBER

hithwen
  • 2,154
  • 28
  • 46
  • @hitwen- One doubt, this modificatio whether i need to keep in master.cfg. Actually i am using shell scripts for build. So, can i use the same in shell script also. – love Sep 11 '14 at 13:57
  • I don't understand what you mean, this pieces of code should be in your steps definitions in master.cfg or included files – hithwen Sep 11 '14 at 14:35
  • Ok hithwen, got it now.. got confused with build steps. I will try and will get back to you. Thanks a lot!! – love Sep 11 '14 at 14:58