0

I am having an issue with .HPI(jenkins Plugin) and so far no one is able to help me.

JENKINS .HPI dependencies issue << click on this link

so now i am wondering , is there a way that,

When using my .HPI(jenkins Plugin) in jenkins, I can run it in a debug or verbose mode, so i can see on the Console Output(in jenkins) what is exactly that is going on.

I think i am getting an error cause it is not going to the right .jar ....

when i ran it in eclipse I have no issue. ( i know which jar it is going to in debug mode in eclipse)

if you cannot run the .HPI(jenkins Plugin) in a verbose or debug mode in jenkins , maybe i can run it as a .WAR ? in a verbose or debug mode in jenkins ?

since i have read that .HPI is very similar to a .WAR.

so that way i can see in the output console exactly what .jar it is going to.

If someone can help me or point me in a direction it will be really helpful.

Community
  • 1
  • 1
adam
  • 123
  • 1
  • 2
  • 8

2 Answers2

0

Try a debug from Eclipse! If it's not working, just add some logs to your project and when you run it in Jenkins, take a look at the logs in console ( easy if you start Jenkins from command line). Or, in the Jenkins installation folder there should be some log files.

Next time can you put the question more clear? It's somehow hard to understand what you ask.

23ars
  • 647
  • 3
  • 16
  • 37
  • thank you so much, i have went back and put more details on the question. – adam Jan 15 '15 at 16:55
  • so the debug in eclipse does show me what jar it is going to. But when i run it on jenkins it fails,( and i cannot see what .jar it is going to in jenkins.) any way in jenkins i can see the log in details, where i can see what jars it goes to, ,like it does in eclipse. ( the console output option does not show which jar it is going to) so need something else. – adam Jan 26 '15 at 19:50
0

Yes, I read your questions. I'm not sure if you'll can see which jar/ lib is chose by Jenkins.

But, about the link,previous question, I had a problem somehow like you with some libraries and tests, when I worked as plugin developer. I'm not sure if I remember correctly, but, just try, create a folder in your project, let's say libs, put the jars in that folder and add the folder to build-path in eclipse and maven should take care of them.

Not sure if it'll work, but you should try. Sorry I can't help you more!

23ars
  • 647
  • 3
  • 16
  • 37
  • Thank you so much for the reply, but that didnot work , i created a folder in my project and put the jars in that and added the build path.. but still not working. – adam Jan 16 '15 at 17:04
  • have you seen this error before ? FATAL: key [privatechef] not in the list of providers or apis: {} java.util.NoSuchElementException: key [privatechef] not in the list of providers or apis: {} – adam Jan 16 '15 at 17:06
  • also i tried to point it ./lib using this configuration.. that didnot work either.. i have tried it with and without – adam Jan 16 '15 at 17:07
  • org.jenkins-ci.tools maven-hpi-plugin 1.95 true ./lib/ true true        – adam Jan 16 '15 at 17:08