|
|
Re: Hudson Integration with ClearCase on linux box [message #1692319 is a reply to message #1692297] |
Wed, 15 April 2015 06:33 |
Venugopal Kodumagulla Messages: 3 Registered: April 2015 |
Junior Member |
|
|
Hi Winston Prakash,
Thanks for your quick response on my post.
Yes, I already have updated the /etc/init.d/hudson and /etc/sysconfig/hudson files
and changed the environment variables as below
HUDSON_USER="hpcmunix"
HUDSON_GROUP="ccworld".
And I restarted the hudson server, but still when I run the build, it is trying to call the "cleartool mkview" command with the user name "hudson".
while configuring the view, I used a variable names ${USER_NAME},${NODE_NAME},${JOB_NAME} for my view tag.
as per the build log, USER_NAME, NODE_NAME, JOB_NAME got replaced with hudson, master, Test1-Build respectively. I know variable "NODE_NAME", and "JOB_NAME" where ther are defined. But not sure, from where the variable USER_NAME got replaced with the value "hudson". I also created global variable "USER_NAME" with value "hpcmunix" and re started the build, but still it was not reflected.
I hope, it may resolve this issue if we know how does the hudson build replace the variable "USER_NAME" with its default value "hudson".
Thanks, Venu Gopal
|
|
|
Re: Hudson Integration with ClearCase on linux box [message #1692762 is a reply to message #1692319] |
Fri, 17 April 2015 17:26 |
Winston Prakash Messages: 534 Registered: August 2011 Location: Fremont, CA USA |
Senior Member |
|
|
USER_NAME is not set by Hudson core only "USER" is set. May be USER_NAME is set by the builder you use. Go to Manage Hudson -> System Information to see all Environment variables set by Hudson core.
You can write a small groovy script to display all Build Parameters in the job console
- install groovy on machine
- install groovy plugin
- in your job use 'Execute system Groovy script' and add groovy script
import hudson.model.*
def build = Thread.currentThread().executable;
println "Build parameters: "+ build.getEnvVars();
This will print all parameters to the console when the job runs.
Winston Prakash
Eclipse Hudson team
|
|
|
Powered by
FUDForum. Page generated in 0.04325 seconds