From Fedora Project Wiki
No edit summary |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
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 the Jenkins is running | ||
|actions= | |actions= | ||
# open http://localhost:8080 | # open http://localhost:8080 in your web browser | ||
# click "New item" | # click "New item" | ||
# enter name | # enter name for a new 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 | # in "Build" section, choose "Execute Shell" from "Add build step" drop-down menu | ||
# paste 'echo "Build successful!"' into | # 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> | |||
Started by user anonymous | Started by user anonymous | ||
Building in workspace /var/lib/jenkins/jobs/project1/workspace | Building in workspace /var/lib/jenkins/jobs/project1/workspace | ||
Line 24: | Line 26: | ||
Build Successful! | Build Successful! | ||
Finished: SUCCESS | Finished: SUCCESS | ||
</pre> | |||
}} | }} |
Latest revision as of 04:57, 30 September 2014
Description
Building freestyle project in Jenkins.
Setup
- ensure that the Jenkins is running
How to test
- open http://localhost:8080 in your web browser
- click "New item"
- enter name for a new item: "project1"
- choose "Freestyle project" type
- click "OK"
- in "Build" section, choose "Execute Shell" from "Add build step" drop-down menu
- paste 'echo "Build successful!"' into a newly created textarea
- click "Save"
- click "Build Now"
Expected Results
- you should see a new entry in "Build history"
- 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:
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