From Fedora Project Wiki

No edit summary
No edit summary
Line 4: Line 4:
|setup=
|setup=
# Ensure that Jenkins is running.
# Ensure that Jenkins is running.
# You will need virtual machine with SSH access for this test (or another physical machine)
# You will need a virtual machine with SSH access for this test (or another physical machine)
#* You can get one easily with [http://rwmj.wordpress.com/2013/12/17/install-fedora-20-with-virt-builder/ virt-builder]
|actions=
|actions=
# go to http://localhost:8080/computer/new
# go to http://localhost:8080/computer/new
Line 12: Line 13:
# make sure that "Launch method" is set to "Launch slave agents on Unix machines via SSH"
# make sure that "Launch method" is set to "Launch slave agents on Unix machines via SSH"
# set "Host" to your VM's hostname/IP
# set "Host" to your VM's hostname/IP
# click "Add" next to "Credentials"
# select "Username with password"
# enter username and password which jenkins can use to access the VM
# click "Add"
#* you should be back in slave configuration screen and your credentials should be selected from drop-down menu
# click "Save"
# click "Save"
# go to http://localhost:8080/computer/slave1/
#* note "slave1" in URL is name of the slave, replace it with correct name if needed
# and click "Launch slave agent"
#* you should see console output which indicates that slave machine is up and running
# go to http://localhost:8080/computer/slave1/script
#* and try to execute command: println "uname -a".execute().text
# click "run"
#* you should see the output of "uname -a" executed on slave machine
|results=
|results=
# user shouldn't encounter any error messages or stacktraces, everything should work as described.
# user shouldn't encounter any error messages or stacktraces, everything should work as described.
}}
}}

Revision as of 10:00, 16 September 2014

Description

Slave machines

Setup

  1. Ensure that Jenkins is running.
  2. You will need a virtual machine with SSH access for this test (or another physical machine)

How to test

  1. go to http://localhost:8080/computer/new
  2. enter node name: "slave1" and select "Dumb Slave" option
  3. click OK
  4. set "Remote root directory" to "/tmp/jenkins"
  5. make sure that "Launch method" is set to "Launch slave agents on Unix machines via SSH"
  6. set "Host" to your VM's hostname/IP
  7. click "Add" next to "Credentials"
  8. select "Username with password"
  9. enter username and password which jenkins can use to access the VM
  10. click "Add"
    • you should be back in slave configuration screen and your credentials should be selected from drop-down menu
  11. click "Save"
  12. go to http://localhost:8080/computer/slave1/
    • note "slave1" in URL is name of the slave, replace it with correct name if needed
  13. and click "Launch slave agent"
    • you should see console output which indicates that slave machine is up and running
  14. go to http://localhost:8080/computer/slave1/script
    • and try to execute command: println "uname -a".execute().text
  15. click "run"
    • you should see the output of "uname -a" executed on slave machine

Expected Results

  1. user shouldn't encounter any error messages or stacktraces, everything should work as described.