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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Continuous Integration - Jenkins

ptc-4670820
7-Bedrock

Continuous Integration - Jenkins

I was wondering if anyone had used Jenkins as a Continuous Integration server. And if anyone had some pointers on getting the workspace to populate with the files out of MKS.

Thanks,

Jim

ACCEPTED SOLUTION

Accepted Solutions

I Figured out my issues. It turns out the user assigned to the checkout/ access must have correct permissions to the files in the database. That being said it did not see any error telling me that was the issue.

View solution in original post

12 REPLIES 12

Jim,

As best as I can tell, we in support have not recently worked with a customer using Jenkins as a Continuous Integration server. Hopefully another user may have experience with this that can add some information.

There are several customers using the Jenkins integration. On the "Jenkins Integrity Plug in" website (https://wiki.jenkins-ci.org/display/JENKINS/PTC+Integrity+Plugin) there is documentation about how to configure the plug in and you can ask questions at the bottom (leave a comment).

Thanks Steffan. I should clarify my response. In support we don't have any recent cases with Jenkins, but we have customers using it and have offer limited support. Currently, we don't have any available documentation on getting it working. If you require assistance, you can open a case with support and we will do our best to help you get it working.

I Figured out my issues. It turns out the user assigned to the checkout/ access must have correct permissions to the files in the database. That being said it did not see any error telling me that was the issue.

I'm having problems trying to get PTC Integrity Client to work with Jenkins. I was wondering if someone can give me some pointers. I downloaded the war and restarted the service. I also downloaded the PTC plug in. Is the plugin supposed to populate the following fields automatically ?

Integrity server hostname

port

username

password

Hi Hector,

You need define a "default" Integrity Connection in the Jenkins System Configuration.

This is used as a template for every new SCM related Job you create, but of course you can overwrite the settings in the job configuration.

Nevertheless there are some popular traps:

- You have to use a certain JRE version (not the very latest) for running you Jenkins server (this is a know problem of the Integrity plugin related to file security changes in Java 7) Personally we use Java 7_25 as 64bit version and it works fine

- There are know problems regarding the usage of the plugin in a Jenkins master-slave environment

- There are limitations to the maximum number of server connections for a single user in Integrity (this might cause trouble in polling for changes based on a schedule)

For all these issues there are several Comments and JIRA entries on the Jenkins Servers.

HTH Matthias

hmagnanao
12-Amethyst
(To:mrump)

Hi Matthias,

Thanks for your pointers. Not sure what JRE version I'm using. How do I find that out ? Also, currently, I am accessing Integrity Client via an installation in my own laptop. And this is the error I keep getting when I try to run my build:

Started by user hmagnanao

Building in workspace C:\Jenkins\jobs\Build with Integrity integration\workspace

Change Log: http://hmagnanao:8080/job/Build%20with%20Integrity%20integration/15/changes

Build Log: http://hmagnanao:8080/job/Build%20with%20Integrity%20integration/15/console

Failed to establish an API connection to the Integrity Server!

Finished: FAILURE

Can you tell me what I'm doing wrong with my setup ?

Thanks,

How do I check if my API connections are enabled on the Integrity Server ?

Hector,

have a look at config/client/IntegrityClientSite.rc for settings.

You either have to set

  • (ICAuthenticatedSessionPolicy) a list of users or
  • (ICAllowSpecificConnectionPolicy) a list of IP adresses.

Veikko

Veikko,

I added my IP address to the rc file in the integrity server and restarted Integrity. When I try to do a build, I still get the error:

Building in workspace C:\Program Files (x86)\Jenkins\jobs\Build using Integrity interface\workspace

Change Log: http://localhost:8080/job/Build%20using%20Integrity%20interface/82/changes

Build Log: http://localhost:8080/job/Build%20using%20Integrity%20interface/82/console

Failed to establish an API connection to the Integrity Server!

Finished: FAILURE

Hector,

you're right and I forgot to mention that you additionally need to restart the server.

Veikko

Veikko,

I got same error after restarting the server.

Hector

Announcements


Top Tags