#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
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to