[JIRA] (JENKINS-42010) Issue with executing PTC-MKS integrity SI commands in jenkins

114 views
Skip to first unread message

sudarshan8304@gmail.com (JIRA)

unread,
Feb 14, 2017, 6:26:01 AM2/14/17
to jenkinsc...@googlegroups.com
sudarshan bangera created an issue
 
Jenkins / Bug JENKINS-42010
Issue with executing PTC-MKS integrity SI commands in jenkins
Issue Type: Bug Bug
Assignee: PTC ALM
Components: integrity-plugin
Created: 2017/Feb/14 11:25 AM
Priority: Major Major
Reporter: sudarshan bangera

Hello All,

Problem Definition:
I am using a python script to configure my subprojects to particular checkpoint label. This above mentioned python script uses ''mksHelper.configureSubproject" SI command. My Jenkins job is expected to run this particular python script.

but unfortunately i am receiving an ERROR:
ERROR:root:Command execution failed: b'si: Attempt to launch Integrity Client timed out. To solve this please try the following:\r\n- Verify that the user you are logged in as has read and write permissions to the Integrity Client install directory.\r\n- Make sure the Integrity Client install directory is the very first entry in the path.\r\n'

I have edited my Environment variable "PATH" and changed accordingly as suggested in the ERROR message.

Thank you

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Feb 15, 2017, 6:59:02 AM2/15/17
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-42010
 
Re: Issue with executing PTC-MKS integrity SI commands in jenkins

Hi Sudarshan,

Is this seen while running the python script? Or during a build step? What is the exact command that mksHelper.configureSubproject firing? Is it firing with a user having permissions to access Integrity Client directory?

sudarshan8304@gmail.com (JIRA)

unread,
Feb 15, 2017, 9:49:02 AM2/15/17
to jenkinsc...@googlegroups.com

The python script works fine when run in Command prompt. It configures my subproject to particular checkpoint label. The problem rises when i try to run this python script in windows batch command Build step
"python Script.py".

The command refers to the Sandbox path, which lies in my system

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Feb 16, 2017, 4:06:01 AM2/16/17
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-42010

Hi Sudarshan,

Is the python script running the Integrity commands with a specific user (--user=<some_user> --password=<some_password>)? Can you attach the script on this issue so we can have a look?

sudarshan8304@gmail.com (JIRA)

unread,
Feb 16, 2017, 6:07:01 AM2/16/17
to jenkinsc...@googlegroups.com
Unable to find source-code formatter for language: python. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
class MKSHelper(MKSConnection):
	
	revisionRE = re.compile(r'^\s*(?P<revision>[0-9\.]+)\s*$')
	memberRevisionRE = re.compile(r'^\s*(?P<revision>[0-9\.]+)\s+(?P<date>[A-Za-z]{3} \d{1,2}, \d{4} \d{1,2}:\d{1,2}:\d{1,2} [AP]M)\s+(?P<label>\S.*?)?\s*$')
	labelRE = re.compile(r'^\s*(?P<revision>[0-9\.]+)\s*(?P<label>\S.*?)?\s*$')
	itemRE = re.compile(r'^(?P<name>.*?)(\((?P<branch>[^\)]+)\))?\s+(?P<type>\S+)\s*(?P<rev>[0-9\.]*)$')
	queryDefRE = re.compile(r'^Query Definition:\s*(?P<definition>.*)$')

	# Format string for datetime values
	datetimeFormat = r'%b %d, %Y %I:%M:%S %p'
	
	extension = '/project.pj'
	headRevision = 'HEAD'
	
	def __init__(self, host, port, user=None, password=None):
		'''
		Constructor: Initialize connection parameters.
		
		Parameter:	str	host		host name of MKS server
					str	port		host port of MKS server
					str	user		user name (optional, defaults to the user name of the default MKS connection)
					str	password	password (optional, defaults to the password of the default MKS connection)
					
		'''
		MKSConnection.__init__(self, user=user, password=password, host=host, port=port)

Above i have attached part of code.

sudarshan8304@gmail.com (JIRA)

unread,
Feb 16, 2017, 6:19:01 AM2/16/17
to jenkinsc...@googlegroups.com
sudarshan bangera edited a comment on Bug JENKINS-42010

{code:python}
class MKSHelper(MKSConnection):

revisionRE = re.compile(r'^\s*(?P<revision>[0-9\.]+)\s*$')
memberRevisionRE = re.compile(r'^\s*(?P<revision>[0-9\.]+)\s+(?P<date>[A-Za-z]{3} \d{1,2}, \d{4} \d{1,2}:\d{1,2}:\d{1,2} [AP]M)\s+(?P<label>\S.*?)?\s*$')
labelRE = re.compile(r'^\s*(?P<revision>[0-9\.]+)\s*(?P<label>\S.*?)?\s*$')
itemRE = re.compile(r'^(?P<name>.*?)(\((?P<branch>[^\)]+)\))?\s+(?P<type>\S+)\s*(?P<rev>[0-9\.]*)$')
queryDefRE = re.compile(r'^Query Definition:\s*(?P<definition>.*)$')

# Format string for datetime values
datetimeFormat = r'%b %d, %Y %I:%M:%S %p'

extension = '/project.pj'
headRevision = 'HEAD'

def __init__(self, host, port, user=None, password=None):
  '''
  Constructor: Initialize connection parameters.
  
  Parameter: str host  host name of MKS server
     str port  host port of MKS server
     str user  user name (optional, defaults to the user name of the default MKS connection)
     str password password (optional, defaults to the password of the default MKS connection)
     
  '''
  MKSConnection.__init__(self, user=user, password=password, host=host, port=port)
{code}


Above i have attached part of code.

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Feb 16, 2017, 7:30:02 AM2/16/17
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-42010

Hi Sudarshan,

I think in the case of running this script as a Windows Batch build step, the user and password (being taken on the default Integrity connection) is different from when you are running it standalone shell/command environment. Can you try running the script with a valid user/password, replacing the user=None, password=None variables in the script?

sudarshan8304@gmail.com (JIRA)

unread,
Feb 16, 2017, 8:09:01 AM2/16/17
to jenkinsc...@googlegroups.com

Hi,

In jenkins Configuration same User ID (Default one) is mentioned.

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Feb 16, 2017, 8:35:01 AM2/16/17
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-42010

Ok. Can you attach the part of the script where it tries to connect to Integrity client? (it usually would be where it fires the first si command)

sudarshan8304@gmail.com (JIRA)

unread,
Feb 16, 2017, 8:41:01 AM2/16/17
to jenkinsc...@googlegroups.com
mksHelper = MKS.MKSHelper('mkstest-server example','7002')
mksHelper.configureSubproject('\Climate\climateFunction\project.pj',s.subPath,revision=s.revisionToConfigure,changePackageId=currentChangePackageID)

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Feb 17, 2017, 5:33:01 AM2/17/17
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-42010

Hi Sudarshan,

This is a helper method for the actual configureSubproject. Could you show what

MKS.MKSHelper('mkstest-server example','7002')

&

mksHelper.configureSubproject

is doing internally?

sudarshan8304@gmail.com (JIRA)

unread,
Feb 17, 2017, 6:05:01 AM2/17/17
to jenkinsc...@googlegroups.com

MKSHelper is a class which uses MKS connection class as argument,

MKS connection class basically uses following arguments
Parameter: str user user name (optional, defaults to the user name of the default MKS connection)


str password password (optional, defaults to the password of the default MKS connection)

str host host name of MKS server (optional, defaults to the host name of the default MKS connection)
str port host port of MKS server (optional, defaults to the host port of the default MKS connection)
int maxRepeat maximum number of repeated command execution in case of a temporary error (optional, defaults to 2)

sudarshan8304@gmail.com (JIRA)

unread,
Feb 17, 2017, 6:06:01 AM2/17/17
to jenkinsc...@googlegroups.com
sudarshan bangera edited a comment on Bug JENKINS-42010
MKSHelper is a class which uses MKS connection  class as argument,

MKS connection class basically uses following arguments
  
{code:java}
  Parameter: str user  user name (optional, defaults to the user name of the default MKS connection)
     str password password (optional, defaults to the password of the default MKS connection)
     str host  host name of MKS server (optional, defaults to the host name of the default MKS connection)
     str port  host port of MKS server (optional, defaults to the host port of the default MKS connection)
     int maxRepeat maximum number of repeated command execution in case of a temporary error (optional, defaults to 2)

{code}

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Feb 25, 2017, 5:42:04 AM2/25/17
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-42010

Hi Sudarshan,

There is a recent problem posed on the PTC community which is an exact same problem that you're facing.
https://www.ptcusercommunity.com/message/479748

You could follow the suggestion given in the thread above and give your problem a try.

tobias.weier@itac.de (JIRA)

unread,
Mar 6, 2017, 10:05:04 AM3/6/17
to jenkinsc...@googlegroups.com
Tobias Weier closed an issue as Duplicate
 

Sorry, duplicate to JENKINS-33077.

Change By: Tobias Weier
Status: Open Closed
Resolution: Duplicate
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

tobias.weier@itac.de (JIRA)

unread,
Mar 6, 2017, 10:06:02 AM3/6/17
to jenkinsc...@googlegroups.com
Tobias Weier reopened an issue
Change By: Tobias Weier
Resolution: Duplicate
Status: Closed Reopened
Reply all
Reply to author
Forward
0 new messages