wiki:Hudson/FAQ

Version 5 (modified by jdsiiro, 10 years ago) (diff)

--

Hudson FAQ

How do I restart Hudson nodes that have hung?

  1. Log-in the node as either the hudson user, or as a user that has sudo privileges.
  2. Kill the Hudson java process
  3. On the host status page in Hudson, click the button in the upper-right corner that says "this node is back online". Pushing that should cause Hudson to start using the node again. If that fails, you can always click the "Disconnect" link to cause Hudson to kill the slave process, then there should be a "Reconnect" button that appears below the node name/description.

How do I start a Hudson job?

  • If you have log-in privileges on Hudson, then on the main page shows an icon next to each job summary. This icon shows a clock with a green triangle. Clicking on this icon will launch the corresponding Hudson job.

How do I configure a Windows Slave?

  • For starters, refer to the  Hudson Wiki.
    • This installs the Hudson slave as a Windows service that runs as the Local SYSTEM user. While normally not a problem, this can really cause problems if you need to do anything custom with your Subversion configuration (e.g. accepting self-signed or invalid SSL certificates). To fix this, continue with the following steps.
  • Create a local hudson user by going to Start -> Settings -> Control Panel -> Administrative Tools -> Computer Management -> Local Users and Groups
  • Edit the permissions for the Hudson slave workspace (e.g. C:\Hudson) and grant Full Control to the hudson user. Be sure to click the Advanced button and select the check box to "Replace permission entries on all child objects with entries that apply to child objects."
  • Edit the properties for the Hudson Slave service (in Start -> Settings -> Control Panel -> Administrative Tools -> Services). On the "Log On" tab, switch the "Log on as:" from the Local System account to the Hudson account.

How do I get Subversion working on a new Slave?

  • Hudson uses SVNKit as it's embedded Subversion client. The Subversion configuration is stored in user's home directory.
    • On Linux: ~/.subversion
    • On Windows: %HOMEPATH%\Application Data\Subversion. For most computers, this will be C:\Documents and Settings\hudson\Application Data\Subversion.
      • If you run the Hudson Slave service as the Local SYSTEM user, the Subversion configuration will probably be stored in C:\WINDOWS\system32\config\systemprofile\Application Data\Subversion.
  • If you have a repository that needs authentication or has a broken SSL certificate (i.e. expired or self-signed), check out the repository on another machine where you can log in with a working subversion client. Then, copy the relevant files (i.e. from ~/.subversion/auth/svn.simple/ or ~/.subversion/auth/svn.ssl.server/) into the corresponding location in the Hudson user's configuration.
  • Also, don't forget to correctly configure Subversion for the SRN proxy. The standard servers fragment we use on the SRN is:
    [groups]
    son = software.sandia.gov
    srn = *.sandia.gov
    
    [srn]
    http-proxy-exceptions = *.sandia.gov
    
    [son]
    # (use default global proxy)
    
    [global]
    http-proxy-exceptions = localhost
    http-proxy-host = wwwproxy.sandia.gov
    http-proxy-port = 80