[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