#977: WithProperties() cannot by used for setting VCS's workdir
------------------------+---------------------------------------------------
Reporter: PiotrSikora | Owner:
Type: defect | Status: new
Priority: major | Milestone: undecided
Version: 0.8.1 | Keywords:
------------------------+---------------------------------------------------
Setting workidir for VCS (Git in my case, but stacktrace indicates that it
applies to all of them) this way:
{{{
workdir=WithProperties('%(property_name)s')
}}}
results in following exception:
{{{
starting git operation
remoteFailed: [Failure instance: Traceback from remote host -- Traceback
(most recent call last):
File "/usr/local/lib/python2.5/site-packages/twisted/spread/pb.py", line
840, in _recvMessage
netResult = object.remoteMessageReceived(self, message, netArgs,
netKw)
File "/usr/local/lib/python2.5/site-packages/twisted/spread/flavors.py",
line 114, in remoteMessageReceived
state = method(*args, **kw)
File "/usr/local/lib/python2.5/site-packages/buildslave/bot.py", line
171, in remote_startCommand
d = self.command.doStart()
File "/usr/local/lib/python2.5/site-
packages/buildslave/commands/base.py", line 908, in doStart
d = defer.maybeDeferred(self.start)
--- <exception caught here> ---
File "/usr/local/lib/python2.5/site-packages/twisted/internet/defer.py",
line 106, in maybeDeferred
result = f(*args, **kw)
File "/usr/local/lib/python2.5/site-
packages/buildslave/commands/vcs.py", line 81, in start
".buildbot-sourcedata")
File "/usr/local/lib/python2.5/posixpath.py", line 60, in join
if b.startswith('/'):
exceptions.AttributeError: Unpersistable instance has no attribute
'startswith'
}}}
Setting workdir this way works fine for other step types.
--
Ticket URL: <http://buildbot.net/trac/ticket/977>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits