[Buildbot-devel] 回复: how to change directory in bu ildslave on Windows ?

Stephen Dicks stephen at starswan.com
Thu Jul 9 13:29:25 UTC 2009


What you actaully want is:

f1.addStep(ShellCommand(workdir="DestPath", command="make"));

This should almost be in the FAQ...

>
> On unix it would be something like
>
> f1.addStep(ShellCommand(command="bash", "-c", "cd DestPath ;\
> make all ; \
> "))
>
> On windows i guess
>
> f1.addStep(ShellCommand(command="cmd", "/c", "cd DestPath && \
> make all \
> "))
>
>
>
> 雷东壁 schrieb:
>> Thank you Lukas! It works fine!
>>
>> But I still want to know how to change dir on Windows via shellcommand,
> cause sometimes it's not safe working with absolute dir...
>>
>> thx!
>>
>>
>>
>> ----- 原始邮件 ----
>> 发件人: Lukas Linhart <lukas.linhart at centrumholdings.com>
>> 收件人: buildbot-devel at lists.sourceforge.net
>> 抄送: 雷东壁 <dongbi_lei at yahoo.com>
>> 已发送: 2009/7/9(周四), 下午3:17:16
>> 主题: Re: [Buildbot-devel] how to change directory in buildslave on
> Windows?
>>
>> Just use workdir= parameter in steps you'd like "cd" to take effect.
>>
>> Almad
>>
>> Dne čtvrtek 09 Červenec 2009 08:25:16 雷东壁 napsal(a):
>>> Hi,
>>> I'm running a buildslave on Windows2003, buildbot version is 0.7.10.
>>> In build steps, I want to change work directory via
>>>
>>> f1.addStep(ShellCommand(command="cd", "DestPath"))
>>>
>>> But it does not work. The working directory has not been changed.
>>>
>>> How to change directory on Windows?
>>>
>>> Thx!
>>>
>>>
>>>       ___________________________________________________________
>>>   好玩贺卡等你发,邮箱贺卡å
¨æ–°ä¸Šçº¿ï¼
>>> http://card.mail.cn.yahoo.com/
>>>
>>>
> ---------------------------------------------------------------------------
>>> --- Enter the BlackBerry Developer Challenge
>>> This is your chance to win up to $100,000 in prizes! For a limited
>>> time,
>>> vendors submitting new applications to BlackBerry App World(TM) will
>>> have
>>> the opportunity to enter the BlackBerry Developer Challenge. See full
> prize
>>> details at: http://p.sf.net/sfu/Challenge
>>> _______________________________________________
>>> Buildbot-devel mailing list
>>> Buildbot-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>>
>>
>>       ___________________________________________________________
>>   好玩贺卡等你发,邮箱贺卡å
¨æ–°ä¸Šçº¿ï¼
>> http://card.mail.cn.yahoo.com/
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will
>> have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
> prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkpV5HoACgkQQ6p+ZxjCGwXD9QCeLAXx3ayezgz25/oDCckCfHvd
> 5KsAoJc/Nhzh82ppiGMm7y0W+QyBZALc
> =Cio2
> -----END PGP SIGNATURE-----
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full
> prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>






More information about the devel mailing list