[Buildbot-commits] [Buildbot] #2393: SetPropertiesFromEnv doesn't find the specified environment variables

Buildbot nobody at buildbot.net
Fri Nov 2 16:34:55 UTC 2012


#2393: SetPropertiesFromEnv doesn't find the specified environment variables
----------------------+----------------------------------
Reporter:  kervala    |      Owner:
    Type:  undecided  |     Status:  new
Priority:  major      |  Milestone:  undecided
 Version:  0.8.5      |   Keywords:  SetPropertiesFromEnv
----------------------+----------------------------------
 I'm using :

 {{{
 #!python
 factory.addStep(SetPropertiesFromEnv(variables=["CMAKE_MODULE_PATH",
 "EXTERNAL_ANDROID_PATH"]))
 factory.addStep(Configure(command=['cmake',
     WithProperties("-DCMAKE_TOOLCHAIN_FILE=%s/AndroidToolChain.cmake",
 "CMAKE_MODULE_PATH"),
     WithProperties("-DCMAKE_INSTALL_PREFIX=%s", "EXTERNAL_ANDROID_PATH"),
     '.']))
 }}}

 And even if these 2 environment variables are listed in buildbot logs,
 SetPropertiesFromEnv doesn't seem to the set them as properties.

 Jc2k on #buildbot helped me and proposed to replace SetPropertiesFromEnv
 line by :

 {{{
 #!python
   factory.addStep(SetProperty(command="echo $CMAKE_MODULE_PATH",
 property="CMAKE_MODULE_PATH"))
   factory.addStep(SetProperty(command="echo $EXTERNAL_ANDROID_PATH",
 property="EXTERNAL_ANDROID_PATH"))
 }}}

 Which is working fine.

 I'll try to debug further to check where the problem appears.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2393>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list