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
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description= Plugins
|description=Building Maven projects in Jenkins.
 
{{result|fail}} Note this test will probably fail: [https://bugzilla.redhat.com/show_bug.cgi?id=1147899 rhbz#1147899]


|setup=
|setup=
# Ensure that Jenkins is running.
 
# Install Maven ("yum install maven")
# ensure that Jenkins is up and running
# install Maven and git: <code>yum install -y maven git</code>
# this test case depends on [https://fedoraproject.org/wiki/Msrb:TestDay/Test_5 plugins] test case
|actions=
|actions=
# go to http://localhost:8080/configure and in "Maven" section click "Add Maven"
# 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"
#* name: "mavenproject1"
## project type: "Build a maven project"
#* 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-task-reactor.git"
# "Repository URL" is "https://github.com/kohsuke/akuma.git"
# click "Save" and "Build Now"
# click "Save" and "Build Now"
|results=
|results=

Latest revision as of 13:30, 30 September 2014

Description

Building Maven projects in Jenkins.

Fail fail

Note this test will probably fail: rhbz#1147899

Setup

  1. ensure that Jenkins is up and running
  2. install Maven and git: yum install -y maven git
  3. this test case depends on plugins test case

How to test

  1. go to http://localhost:8080/configure and click on "Add Maven" in "Maven" section
  2. specify name of this installation: "system"
  3. uncheck "Install automatically"
  4. set "MAVEN_HOME" to "/usr/share/maven/"
  5. click "Save"
  6. go to http://localhost:8080/view/All/newJob and create new item
    • name: "mavenproject1"
    • project type: "Build a maven project"
  7. click "OK"
  8. in "Source Code Management" choose "git"
  9. "Repository URL" is "https://github.com/kohsuke/akuma.git"
  10. click "Save" and "Build Now"

Expected Results

  1. there should be no failures or stacktraces printed on the screen
  2. the build should finish successfully (blue ball in history)