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

Pierre Tardy tardyp at gmail.com
Wed Apr 12 12:41:19 UTC 2017


Nicolas,
I think you missed the _workdir when configuring setPropertyFromCommand


- self.addStep(shell.SetPropertyFromCommand(command='grep version setup.py
| grep = | cut -d = -f2 | cut -d"\'" -f2 ', property="upstreamPkgVer"))
+ self.addStep(shell.SetPropertyFromCommand(command='grep version setup.py
| grep = | cut -d = -f2 | cut -d"\'" -f2 ', property="upstreamPkgVer",
workdir=self._workdir)


On Wed, Apr 12, 2017 at 2:33 PM nicolas.lecureuil nicolas.lecureuil <
nicolas.lecureuil at siveo.net> wrote:

>
> Le 6 avril 2017 à 10:40, "nicolas.lecureuil nicolas.lecureuil" <
> nicolas.lecureuil at siveo.net> a écrit :
>
>
> 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
>
> i still don't pass to use Interpolate, i think i missed a detail somewhere
>
>
> Is my paste enough to understand or do you need the whole master.cfg file ?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170412/ead7f892/attachment.html>


More information about the users mailing list