Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7530825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:01:03+00:00 2026-05-30T05:01:03+00:00

I am using Jenkins 1.450 for CI, my source code is in a git

  • 0

I am using Jenkins 1.450 for CI, my source code is in a git repo, and I am using maven as build environment.

My problem: I cannot get Jenkins to generate test results.

Details:

1. If I create a ‘freestyle’ job in Jenkins, it executes the build successfully. But, if I select the ‘Publish JUnit test result report’ option, Jenkins cannot find the test report files. I can see them in target/surefire-reports/ if I do ‘mvn install’ myself, but Jenkins somehow doesn’t build in the workplace… after a Jenkins build, I don’t see this target directory created.

2. If I create ‘Maven 2/3’ job, and give it path to my Maven installation, Jenkins simply does not find it – it says: <path>/Maven_3.0.4 doesn't have a 'lib' subdirectory - thus cannot be a valid maven installation!

The error doesn’t change even after giving read-write-execute permissions to all users for this directory.

What is it that I am doing wrong here? Do I need to have the <reporting> tag in my pom files? Where can I find documentation/troubleshooting info for all this?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:01:04+00:00Added an answer on May 30, 2026 at 5:01 am

    Maven 2/3 project satisfies our test-reports requirements. Once I saw that, I went ahead and figured out the problems in building the same.

    I followed these steps to install Maven: http://lukieb.wordpress.com/2011/02/15/installing-maven-3-on-ubuntu-10-04-lts-server/, and then made sure that path to maven install was set properly in Jenkins.

    As we are building Android applications, the next problem was ANDROID_HOME variable – Jenkins could not find Android SDK location without it. Doing a export didn’t help; it never ‘stuck’. Moreover, the PATH seen by Jenkins and by echo $PATH did not match. The answer was modifying /etc/profile, and adding export ANDROID_HOME and then export PATH=$ANDROID_HOME:$PATH there. (I got this from another Stackoverflow question.)

    After all this, now my CI setup is working.

    [I am accepting this answer, please let me know if you need further info…]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Jenkins to execute a Maven Build which includes an EJB integration test
I am using maven to build my java app, Jenkins for CI and Sonar
I want to build an local iPhone project without source control using jenkins. However
We are using Jenkins to automate several of our build and test processes. For
I am working on Automated Build using maven and Jenkins. I am looking for
everybody, I have some problem related to the jenkins and git. I created a
I am using Jenkins..After specifying repository URL and credentials When i click build now,
Some time I get failed notification email in jenkins even though build is passed?
I am currently performing unit tests on my code (using PHPUnit and Jenkins) but
we're using Jenkins as our build server. We have a Project which is built

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.