From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description= Plugins |setup= # Ensure that Jenkins is running. # Install Maven ("yum install maven") |actions= # go to http://localhost:8080/configure and in ...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description= | |description=Building Maven projects in Jenkins. | ||
|setup= | |setup= | ||
# | # ensure that Jenkins is up and running | ||
# | # install Maven: <code>yum install maven</code> | ||
|actions= | |actions= | ||
# go to http://localhost:8080/configure and | # go to http://localhost:8080/configure and click on "Add Maven" in "Maven" section | ||
# specify name of this installation: "system" | # specify name of this installation: "system" | ||
# uncheck "Install automatically" | # uncheck "Install automatically" | ||
# set MAVEN_HOME to "/usr/share/maven/" | # set "MAVEN_HOME" to "/usr/share/maven/" | ||
# click "Save" | # click "Save" | ||
# go to http://localhost:8080/view/All/newJob and create new item | # go to http://localhost:8080/view/All/newJob and create new item | ||
# | #* name: "mavenproject1" | ||
# | #* project type: "Build a maven project" | ||
# click OK | # click "OK" | ||
# in "Source Code Management" choose "git" | # in "Source Code Management" choose "git" | ||
# "Repository URL" is "https://github.com/jenkinsci/lib- | # "Repository URL" is "https://github.com/jenkinsci/lib-annotation-indexer.git" | ||
# click "Save" and "Build Now" | # click "Save" and "Build Now" | ||
|results= | |results= |
Revision as of 07:54, 3 September 2014
Description
Building Maven projects in Jenkins.
Setup
- ensure that Jenkins is up and running
- install Maven:
yum install maven
How to test
- go to http://localhost:8080/configure and click on "Add Maven" in "Maven" section
- specify name of this installation: "system"
- uncheck "Install automatically"
- set "MAVEN_HOME" to "/usr/share/maven/"
- click "Save"
- go to http://localhost:8080/view/All/newJob and create new item
- name: "mavenproject1"
- project type: "Build a maven project"
- click "OK"
- in "Source Code Management" choose "git"
- "Repository URL" is "https://github.com/jenkinsci/lib-annotation-indexer.git"
- click "Save" and "Build Now"
Expected Results
- there should be no failures or stacktraces printed on the screen
- the build should finish successfully (blue ball in history)