• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jenkins issue: Build Successfully but Finished: Failure

 
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am building one job in jenkins, it is building successfully but it showing me this:
BUILD SUCCESSFUL
Total time: 3 minutes 59 seconds
Finished: FAILURE

why it finished with failure?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Impossible to tell with the text you provided. Look at all of the console output, perhaps there is an error earlier on. If Ant returns a non-zero value then Jenkins will print the "Finished: FAILURE" message. Or perhaps you have a multi-part build and subsequent parts failed to run. Ditto for post-build steps (for example, the mail-ext plugin ran into a problem). You might have to look at the Jenkins logs to track down the root cause.
 
Punit Jain
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i search for error in the console track, i found 2:

cleartool: Error: Branch type not found: "[branch_name]"
cleartool: Error: Branch type not found: "[branch_name]"
any suggestions??

also there is lot of warnings, but as far as i know warnings are not makes build fail?

If Ant returns a non-zero value then Jenkins will print the "Finished: FAILURE" message.


how to check, what Ant has returned? or FAILURE itself means non-zero?

Ditto for post-build steps (for example, the mail-ext plugin ran into a problem).


but if this is the case, than it should show somewhere on the console that sending email failed.

You might have to look at the Jenkins logs to track down the root cause.


i searched for that but i was unable to find.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Punit Jain wrote:but if this is the case, than it should show somewhere on the console that sending email failed.


I would never make that assumption.

Punit wrote:i searched for <the log file> but i was unable to find.


Under the Jenkins installation directory there should be a jobs directory, and a subdirectory for each job, and another subdirectory for job number, there is a log directory there. Example: jenkins/jobs/myjobname/8/log

The warnings are from clearcase, so I have no idea about them.
You might try running Ant with the -v or -d options, that might give you some more information.
 
Punit Jain
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solved: The problem is because it was not finding the viewroot for clearcase, that is solved by providing the clearcase viewroot in the job configuration.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for providing the details of the solution! I'm sure that other ranchers who run into the same issue and come across this post will thank you also.
 
Punit Jain
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you are welcome.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic