- ensure that Jenkins is running
- you will need a virtual machine with SSH access for this test (or another physical machine)
- you can get one easily with virt-builder
How to test
- go to http://localhost:8080/computer/new
- enter node name: "slave1" and select "Dumb Slave" option
- click OK
- set "Remote root directory" to "/tmp/jenkins"
- make sure that "Launch method" is set to "Launch slave agents on Unix machines via SSH"
- 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"
- 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
- user shouldn't encounter any error messages or stacktraces, everything should work as described