[users at bb.net] Build URL in build step?

Jeremy Cornett jeremy.cornett at venafi.com
Wed Feb 10 16:21:22 UTC 2016


Hi Cristian,

 

I use this all the time to put together the build URL. I'm sure you could
add onto it to add in the part for the individual build step if you wanted.
I do this particular bit so I can create a shortcut in the build output to
the build page, so someone who copies down the build output from the builds
file server has a link back to BuildBot for that particular build.

 

    @properties.renderer

    def MakeCommand(self):

        theCommand = [JoinPath(("BuildSystem", "Distribute.py"), "Win")]

 

        listUrlPieces = []

        listUrlPieces.append(

            self.build.builder.botmaster.master.config.buildbotURL)

        listUrlPieces.append("builders")

        listUrlPieces.append(self.build.getProperty("buildername"))

        listUrlPieces.append("builds")

        listUrlPieces.append(

            str(self.build.getProperty("buildnumber")) + "#BuildInfo")

 

        theCommand.append('/'.join(s.strip('/') for s in listUrlPieces))

 

        return theCommand

 

    shell.Compile(

        command=MakeCommand,

        name="Distribute")

)

 

 

 


Description: http://www.venafi.com/img/venafi_email_signature_logo.gif

| Jeremy Cornett | Configuration Management Engineer

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160210/9aee8ae3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2704 bytes
Desc: not available
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160210/9aee8ae3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5955 bytes
Desc: not available
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160210/9aee8ae3/attachment.bin>


More information about the users mailing list