Failed ANT build: Unable to locate tools.jar

2019-06-07 Thread ABostonGal ABostonGal
I have an ANT build that has been working just fine for quite a while and suddenly it has stopped working and I am trying to figure out why. Here is what the Jenkins console displays and my notes about it. I've obscure the actual site name, directory values, and Jenkins job name, etc. "uvwx" is

Re: Failed ANT build: Unable to locate tools.jar

2019-06-07 Thread Mark Waite
I suspect that something (Jenkins tool definition, local setting on the computer, etc.) is defining a JAVA_HOME environment variable as c:\Program Files\Java\jre1.8.0_201. Add a bat step to the job prior to calling `ant` and run the command `set`. That will report the environment variable to con

Re: Failed ANT build: Unable to locate tools.jar

2019-06-07 Thread ABostonGal ABostonGal
Thank you Mark. Yes, I checked for that the Environment Variables but unfortunately: nothing! I've tried adding a JAVA_HOME variable pointing to the place where the tools.jar is and the build failed. I'd really like to understand how the build files "think" they should be looking for this before

Re: Failed ANT build: Unable to locate tools.jar

2019-06-07 Thread Mark Waite
Most interesting. Ant expects to have a full JDK available. It depends on the tools.jar file which is provided by the JDK but is not available with the JRE. The directory name "jre1.8.0_201" indicates that it is not a JDK, but a JRE. You indicated that even that directory does not exist on the a

Re: Failed ANT build: Unable to locate tools.jar

2019-06-07 Thread ABostonGal ABostonGal
Thank you Mark. Ya' I've been looking all over the place...there is one file referenced that looks promising, but for the life of me, I cannot find it either! build.properties Here's where I saw it in the build.xml: but from the comments in the above...maybe it does not exist... On

Re: pipeline ignore error

2019-06-07 Thread Quang Truong
Not sure if I understand you correctly, just do try catch like java code Scripted: stage ('abc') { try { sh "rm file' } catch (e) { echo "Error deleting file!" } } Declarative: stage ('abc') { script { try { sh "rm file' } catch (e) { echo "Error deleting file

Re: Error in Manage Jenkin page

2019-06-07 Thread Quang Truong
Seems you're trying to connect to a tool app under TLS with un-trusted/self-signed cert. With Jenkins you have to add your cert into Java keystore, unfortunately I haven't success to do that so I can't add more comment but you can start with that for your research. On Thursday, June 6, 2019 at

extract or validate the xml response from jenkins

2019-06-07 Thread panneerrselvam natarajan
Hi All, I am using Jenkins (linux server), and sending the RAP content and getting the xml response for my test suite result. I am publishing the test result using test result analyzer. xml file were created and published thru "Test Result Analyser" . . Now I want to extract the number of pass