From Fedora Project Wiki

Revision as of 14:43, 1 September 2014 by Msrb (talk | contribs) (Created page with "{{QA/Test_Case |description= Command-line interface |setup= # Ensure that jenkins-cli package is installed |actions= # run "jenkins-cli -s http://localhost:8080/ help" ## you...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Command-line interface

Setup

  1. Ensure that jenkins-cli package is installed

How to test

  1. run "jenkins-cli -s http://localhost:8080/ help"
    1. you should see list of all available commands
  2. run "jenkins-cli -s http://localhost:8080/ list-jobs"
    1. you should see list of all configured projects:
project1
  1. run "jenkins-cli -s http://localhost:8080/ build project1 -s -v"
    1. this should start build of "project1" and you should see console output from the build:
Started project1 #2
Started by command line by anonymous
Building in workspace /var/lib/jenkins/jobs/project1/workspace
[workspace] $ /bin/sh -xe /tmp/hudson7729477737891392405.sh
+ echo 'Build Successful!'
Build Successful!
Finished: SUCCESS
Completed project1 #2 : SUCCESS
  1. run "jenkins-cli -s http://localhost:8080/ groovysh"
    1. you should see Groovy shell prompt:
Groovy Shell (1.8.9, JVM: 1.8.0_11)
Type 'help' or '\h' for help.
-------------------------------------------------------------------------------
groovy:000>
  1. try to run some Groovy code, for example '"uname -a".execute().text'
  2. type "quit" to quit the Groovy shell

Expected Results

  1. there should be no failures or stacktraces printed on stdout/stderr