From Fedora Project Wiki

Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description= Building freestyle project in Jenkins
+
|description=Building freestyle project in Jenkins.
  
 
|setup=
 
|setup=
# Ensure that package jenkins is installed and that server is running.
+
# Ensure that the Jenkins is running
 
|actions=
 
|actions=
 
# open http://localhost:8080/jenkins in your web browser
 
# open http://localhost:8080/jenkins in your web browser
Line 9: Line 9:
 
# enter name of the item: "project1"
 
# enter name of the item: "project1"
 
# choose "Freestyle project" type
 
# choose "Freestyle project" type
# click OK
+
# click "OK"
 
# in "Build" section, choose "Execute Shell" from "Add build step" drop down meno
 
# in "Build" section, choose "Execute Shell" from "Add build step" drop down meno
# paste 'echo "Build successful!"' into the newly created textarea
+
# paste 'echo "Build successful!"' into a newly created textarea
 
# click "Save"
 
# click "Save"
 
# click "Build Now"
 
# click "Build Now"
 
|results=
 
|results=
# you should see new entry in "Build history"
+
# you should see a new entry in "Build history"
 
# the ball representing status of the last build should be blue
 
# the ball representing status of the last build should be blue
 +
#* blue means success in Jenkins
 
# clicking on the ball should show console output from given build:
 
# clicking on the ball should show console output from given build:
 
<pre>
 
<pre>

Revision as of 06:55, 3 September 2014

Description

Building freestyle project in Jenkins.

Setup

  1. Ensure that the Jenkins is running

How to test

  1. open http://localhost:8080/jenkins in your web browser
  2. click "New item"
  3. enter name of the item: "project1"
  4. choose "Freestyle project" type
  5. click "OK"
  6. in "Build" section, choose "Execute Shell" from "Add build step" drop down meno
  7. paste 'echo "Build successful!"' into a newly created textarea
  8. click "Save"
  9. click "Build Now"

Expected Results

  1. you should see a new entry in "Build history"
  2. the ball representing status of the last build should be blue
    • blue means success in Jenkins
  3. clicking on the ball should show console output from given build:
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/project1/workspace
[workspace] $ /bin/sh -xe /tmp/hudson5548796080979748704.sh
+ echo 'Build Successful!'
Build Successful!
Finished: SUCCESS