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

Jeremy Cornett jeremy.cornett at venafi.com
Tue Feb 4 22:48:37 UTC 2014


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<mailto: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<mailto: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/20140204/0d5a4f96/attachment.html>


More information about the devel mailing list