[users at bb.net] question about use of Interpolate

nicolas.lecureuil nicolas.lecureuil nicolas.lecureuil at siveo.net
Thu Apr 6 08:40:23 UTC 2017


> Le 6 avril 2017 à 10:13, Pierre Tardy <tardyp at gmail.com> a écrit :
> 
> 
>         > > 
> >         Hi,
> > 
> > 
> >         i have forgottent a big detail, i am using bb 0.8.9 ( as i need to port to bb 0.9.x in a second step but i want as a first step a working buildbot ( i am not that far from this :) )
> > 
> >     >     You can at least upgrade to 0.8.12, and get new style steps.
>      
> 
>         > > 
> >          
> > 
> > 
> >         so if i use:
> > 
> >         f1.addStep(shell.SetPropertyFromCommand(command='grep version setup.py | grep = | cut -d = -f2 | cut -d"\'" -f2 ', property="upstreamPkgVer"))
> > 
> > 
> >         for now i have :
> > 
> >         self.addStep(UpstreamGetVersion(workdir=self._workdir))
> >         self.addStep(DebComputeNewVersion(master_path=self._base_master_path, pkg_url=self._base_pkg_url))
> > 
> >         if i use
> > 
> > 
> > 
> >         f1.addStep(shell.SetPropertyFromCommand(command='grep version setup.py | grep = | cut -d = -f2 | cut -d"\'" -f2 ', property="upstreamPkgVer"))
> > 
> > 
> >         i obtain  :
> > 
> > 
> >         LINE: pulse-agent-plugins (grep: setup.py: Aucun fichier ou dossier de ce type+git20170405233946.ea174fc-1) UNRELEASED; urgency=medium
> > 
> >     > 
>     I think this is just the problem of workdir. looks like you have some specific workdir management in your master.cfg which you did not publish, so its not easy for me to help 
> 
>     You can use export LANG=C before starting your workers to disable french i18n for your workers.
> 
>     Pierre 
> 


sorry:

i have

self._workdir = os.path.join(self._buildroot, self._projectdir)


the complete function is:

https://pastebin.com/EbyvE9BH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170406/1ff49edf/attachment.html>


More information about the users mailing list