Opened 14 years ago
Last modified 14 years ago
#662 new defect
pass ${revision} to local bitten-slave
Reported by: | kostmo@… | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 0.6.1 |
Component: | General | Version: | 0.6b3 |
Keywords: | revision pre-defined variable | Cc: | |
Operating System: | BSD |
Description
Running locally from the command line (see http://bitten.edgewall.org/wiki/BittenRunSlaveLocally), there seems to be no way to specify the values for the pre-defined variable "revision" (and others listed here: http://bitten.edgewall.org/wiki/BuildRecipes#PropertyInterpolation).
This person had the same problem as me: http://groups.google.com/group/bitten/browse_thread/thread/e5d7a026d6dbd935/6706a86dc8446e4f
Attachments (0)
Change History (2)
comment:1 Changed 14 years ago by hodgestar
comment:2 Changed 14 years ago by Karl Ostmo <kostmo@…>
- Version changed from 0.6b2 to 0.6b3
OK, from the command line in Windows I first ran:
set revision=11573
This worked correctly to set the ${revision} pre-defined variable when I tested as follows:
bitten-slave --keep-files --work-dir=my_workdir --build-dir=my_builddir Build Recipe.xml
However, after similarly trying to set the ${path} pre-defined variable as follows:
set path=/trunk/mystuff
I get the following error when running bitten-slave: [ERROR ] 'svn' is not recognized as an internal or external command, [ERROR ] operable program or batch file.
The system PATH variable has been overwritten. Restarting cmd.exe restores it.
Also see my related post on Google Groups: http://groups.google.com/group/bitten/browse_thread/thread/9a8eb8893f63d288
I don't think this is documented but it looks like the configuration object will automatically substitute in environment variables from os.environ. Could you try those and report back whether it works?