This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository ppa:openjdk-r/ppa | |
| sudo apt-get update | |
| sudo apt-get install openjdk-8-jdk | |
| sudo update-alternatives --config java | |
| sudo update-alternatives --config javac | |
| java -version | |
| sudo apt-get install ngrok-client | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Traceback (most recent call last): | |
| File "/usr/lib64/python2.6/site-packages/twisted/spread/pb.py", line 563, in expressionReceived | |
| method(*sexp[1:]) | |
| File "/usr/lib64/python2.6/site-packages/twisted/spread/pb.py", line 933, in proto_answer | |
| d.callback(self.unserialize(netResult)) | |
| File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 393, in callback | |
| self._startRunCallbacks(result) | |
| File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks | |
| self._runCallbacks() | |
| --- <exception caught here> --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @util.renderer | |
| def getrepoPath(props): | |
| return [ Interpolate('/opt/repos:/buildslave/%(props:buildername)s/build/repos') ] | |
| container_conf = {} | |
| container_conf['network_mode'] = 'host' | |
| container_conf['dns'] = ['8.8.8.8','8.8.4.4'] | |
| c['slaves'] = [ | |
| buildslave.DockerLatentBuildSlave('docker_slave', 'password', | |
| docker_host='unix:///var/run/docker.sock', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @renderer | |
| def getrepoPath(props): | |
| print util.Property('buildername') | |
| if props.hasProperty('buildername'): | |
| bname = props.getProperty('buildername') | |
| else: | |
| bname = 'crpmbuild' | |
| props.setProperty('halfive', 'foo', 'bar') | |
| print props | |
| return bname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Props seen in renderer when called from worker | |
| 2016-03-16 21:36:15+0000 [-] starting build <Build fw-versions> using slave <LatentSlaveBuilder builder=u'fw-versions' slave=u'docker_slave'> | |
| 2016-03-16 21:36:15+0000 [-] acquireLocks(slave <DockerLatentBuildSlave u'docker_slave'>, locks []) | |
| 2016-03-16 21:36:15+0000 [-] substantiating slave <LatentSlaveBuilder builder=u'fw-versions' slave=u'docker_slave'> | |
| 2016-03-16 21:36:15+0000 [-] <buildbot.process.properties.Property object at 0x7fb728476ad0> | |
| 2016-03-16 21:36:15+0000 [-] Properties(**{u'halfive': 'foo'}) | |
| Props seen in renderer when called from build step | |
| 2016-03-16 21:36:36+0000 [-] <buildbot.process.properties.Property object at 0x3399550> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from buildbot.process.properties import renderer,Interpolate | |
| @renderer | |
| def getrepoPath(props): | |
| if props.hasProperty('buildername'): | |
| return props.getProperty('buildername') | |
| else: | |
| return 'foobar' | |
| ####### BUILDSLAVES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python2 | |
| import web | |
| import json | |
| def add_global_hook(x): | |
| g = web.storage({"auth": x}) | |
| def _wrapper(handler): | |
| web.ctx.globals = g | |
| return handler() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| STATE=`sudo racadm get BIOS.SerialCommSettings.SerialComm | head -n 2 | tail -n1 | cut -d'=' -f2` | |
| sudo racadm set BIOS.SerialCommSettings.SerialComm Off | |
| sudo racadm jobqueue create bios.setup.1-1 | |
| echo $STATE > old_sol_state | |
| sudo reboot | |
| ## update idrac first | |
| ## update raid | |
| ## update bios | |
| sudo reboot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*-coding: utf8 -*- | |
| ''' | |
| Sample output showing bug in api | |
| Add label, expected return code of 200 : https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue | |
| Method : POST, Endpoint : https://api.github.com/repos/foobar-test/asdf/issues/8/labels, Payload ['bug'] | |
| Response Code 200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2016-07-28 20:46:25-0700 [Broker,1,127.0.0.1] Unhandled Error | |
| Traceback (most recent call last): | |
| File "/dump/workspace/buildbot_venv/bb-master/lib/python2.7/site-packages/twisted/python/log.py", line 101, in callWithLogger | |
| return callWithContext({"system": lp}, func, *args, **kw) | |
| File "/dump/workspace/buildbot_venv/bb-master/lib/python2.7/site-packages/twisted/python/log.py", line 84, in callWithContext | |
| return context.call({ILogContext: newCtx}, func, *args, **kw) | |
| File "/dump/workspace/buildbot_venv/bb-master/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext | |
| return self.currentContext().callWithContext(ctx, func, *args, **kw) | |
| File "/dump/workspace/buildbot_venv/bb-master/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext | |
| return func(*args,**kw) |