Skip to main content
March 4, 2015
Solved

PTC Jenkins Plugin Integration Issue

  • March 4, 2015
  • 3 replies
  • 6646 views

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

Best answer by pmerkle

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

3 replies

16-Pearl
March 4, 2015

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

5-Regular Member
March 5, 2015

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

March 5, 2015

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?

5-Regular Member
March 5, 2015

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

pmerkle5-Regular MemberAnswer
5-Regular Member
March 10, 2015

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