cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

PTC Jenkins Plugin Integration Issue

spadaki
2-Guest

PTC Jenkins Plugin Integration Issue

The issue is regarding the configuration of PTC With Jenkins

The tools used are

1) MKS Integrity Client 2009

Build: 4.10.0.9665

Service Pack: 007-01

2) Jenkins version 1.599

3) PTC Integrity CM - Jenkins Plugin : 1.31

The link "https://wiki.jenkins-ci.org/display/JENKINS/PTC+Integrity+Plugin" depicts the configuration process. The integrity hpi file is uploaded

manually. Upon success, proceeding with the configuration there is an error that occurs while testing the connection. The entries include

hostname

port

username

password

Error: Failed to establish connection!

Error Log

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

Testing Integrity API Connection...

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

hostName: w******8

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

port: 9001

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

userName: s*****r

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

password: YK****AE=

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

secure: false

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

ipHostName:

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

ipPort: 0

Mar 04, 2015 4:53:27 PM FINE IntegritySCM

Creating Integrity API Session...

Mar 04, 2015 4:53:28 PM SEVERE hudson.scm.APISession create

API Exception caught...

Mar 04, 2015 4:53:28 PM SEVERE hudson.scm.APISession create

Unexpected HTTP status: Internal Server Error

Mar 04, 2015 4:53:28 PM FINE IntegritySCM

returned exit code -1

Mar 04, 2015 4:53:28 PM SEVERE hudson.scm.APISession create

APIException

1 ACCEPTED SOLUTION

Accepted Solutions
pmerkle
5-Regular Member
(To:spadaki)

Hi,

when creating a PTC Session via the Integrity Java API an APIException can be thrown for serveral reasons:

1. Wrong hostname or port

2. Incompatible API version

3. Wrong user name or password

For further investigation it would be helpful if you add the complete server.log file as attachment to your question.

Regards,

Peter

View solution in original post

6 REPLIES 6
KaelLizak
14-Alexandrite
(To:spadaki)

Have you tried connecting to the server from the same host that the Jenkins integration is installed on using the GUI or web UI with the same credentials? If it does work, I would investigate the API configuration of the Integrity server. If it doesn't work, I would suggest:

  • Making sure the credentials are valid
  • Making sure that workstation can connect to that server on that port (general network connectivity, firewall rules)

I hope that helps.

Regards,

Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
pmerkle
5-Regular Member
(To:spadaki)

I don't think that the newest version (1.31) of the PTC Adaptor for Jenkins works with MKS Integrity Client 2009.

The lowest Integrity version the plugin supports is Integrity 10.3.

Regards,

Peter

Hi Peter

First of all, thanks for the quick reply

Which version of PTC adaptor (Integrity Hpi) plugin file would be suitable for MKS Integrity Client 2009?

pmerkle
5-Regular Member
(To:spadaki)

Hi,

I have found the following statement on the web page

https://wiki.jenkins-ci.org/display/JENKINS/PTC+Integrity+Plugin#PTCIntegrityPlugin-PluginforUnsupportedConfigurations

under the section “Plugin Unsupported Configurations”:

“With the release of integrity-plugin 1.29, versions older than Integrity 10.5 are no longer supported. A special one off version 1.31-4.10.9049 has been created for users who want to take advantage of the recent fixes but need more time to migrate from Integrity 2009 SP6, SP7, 10, 10.1, 10.2, 10.3 and 10.4. There will be no more fixes provided for configurations older than Integrity 10.5.”

I hope that will help you …

Regards,

Peter

KaelLizak
14-Alexandrite
(To:pmerkle)

Hello Sujith,

Did Peter's answer provide you with the information you required? If not, please let us know what you still need. If it did answer your question, please mark the appropriate response of Peter's as Correct Answer by clicking on that button at the bottom of the appropriate response. From the bottom of any given post, you can also select Actions --> Mark as Helpful if a post was somewhat useful, but didn't get you a complete answer.

The reasons we ask you to do this are because 1) someone else searching for a similar issue can more easily identify what you found useful in the thread, and 2) it recognizes Peter's contribution to the discussion.

Thanks,

Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
pmerkle
5-Regular Member
(To:spadaki)

Hi,

when creating a PTC Session via the Integrity Java API an APIException can be thrown for serveral reasons:

1. Wrong hostname or port

2. Incompatible API version

3. Wrong user name or password

For further investigation it would be helpful if you add the complete server.log file as attachment to your question.

Regards,

Peter

Top Tags