[Buildbot-devel] Fail to set builder environnement variables in solaris

Yasser LEBON yasser.lebon at gmail.com
Wed Feb 5 13:25:58 UTC 2014


Setting directly environment variables on the machine also works but I want
to set the PATH from the master configuration to minimize manual tasks on
the slave machine.
In linux,  Buildbot can update an existing environment variable so I think
it should work also on Solaris too. I want to notice that we don't use the
same version Solaris, my slave is on a Solaris 10  machine. Could you tell
me which version of Buildbot do you use?


Thanks for you reply.
Yasser




2014-02-04 Jeremy Cornett <jeremy.cornett at venafi.com>:

>  I run a Solaris buildslave with environment variables. I have no issues
> with it. You may have issues with trying to pass the Path environment
> variable though. I'm also not sure how passing an environment variable will
> work if there is a variable already there with that name...  Because you're
> not setting variables that are specific to your master configuration, I
> would just create/edit the environment variables on the buildslave
> directly. If you do though, don't forget to restart the slave process, so
> it'll pick up the new environment variables.
>
>
>
> # Agent Solaris 8
>
> # The current version of git (1.7.0) on the Solaris box does not support
> the --progress switch for the fetch command (9/14/2012).
>
> c[*'builders'*].append(
>
>     BuilderConfig(
>
>         name = AgentSol8,
>
>         category=*"Agent_14.1"*,
>
>         slavename = *'BuildBotSlave17'*,
>
>         factory = CreateAgentFactory(OS=*"Sol8"*, Progress=False),
>
>         locks = [lockAgentSol8],
>
>         env={*'BUILDERNAME'* : AgentSol8, *'PROJECTBASE'*: *'Agent/build'*
> }))
>
>
>
> Thanks,
>
> Jeremy
>
>
>
> *From:* Dustin J. Mitchell [mailto:dustin at v.igoro.us]
> *Sent:* Tuesday, February 04, 2014 3:32 PM
> *To:* Yasser LEBON
> *Cc:* Buildbot Devel
> *Subject:* Re: [Buildbot-devel] Fail to set builder environnement
> variables in solaris
>
>
>
> What does happen?
>
> On Feb 4, 2014 10:17 AM, "Yasser LEBON" <yasser.lebon at gmail.com> wrote:
>
> Hello,
>
>
>
> I need to add some environment variables on my builder. It works well in
> linux platform but not in solaris.
>
>
>
> builder_solaris = BuilderConfig(
>
>         name="build-solaris",
>
>         slavenames=["slave1"],
>
>         factory=build,
>
>         env = {
>
>             'JAVA_HOME': '/usr/local/jdk1.6.0_21',
>
>             'PATH': '/usr/local/bin:/usr/local/maven/bin:${PATH}'
>
>         }
>
>     )
>
>
>
> Have you already faced with this problem? Thanks.
>
>
>
> Yasser
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20140205/694db463/attachment.html>


More information about the devel mailing list