How to checkout file in Jenkins perforce plugin ?

935 views
Skip to first unread message

Sanjeev Singh

unread,
Oct 16, 2015, 11:25:29 AM10/16/15
to Jenkins Users
Hi,
I am a new user to Jenkins and trying to setup a C++ build using perforce. I am able to create the view and build the project fine using MSBuild.
But I need to modify one header file containing version info before build and submit the changed file on perforce after build. 
I am trying to use 'p4 edit' command, but getting this error : 

 <https://jenkins.factset.com/job/Partners/job/NetCli_Win32/ws/>p4> edit -c default //depot/est/Partners/Tools/Netcli/netcli_version.h

//depot/est/Partners/Tools/Netcli/netcli_version.h - no permission for operation on file(s).


Please can someone  let me know what is the issue here, why can't I checkout a file using 'p4 edit' ?


Thanks,

Sanjeev

Jenkins_config.jpg

Ginga, Dick

unread,
Oct 16, 2015, 12:25:16 PM10/16/15
to jenkins...@googlegroups.com

This is not really a Jenkins question. It is a Perforce question but we use Perforce and:

 

-c default   --- is default your workspace name? Jenkins usually changes the client workspace name to append the node name. do you have “Let Jenkins manage the workspace” selected?

 

Does the user you are using have write permissions on this codeline?

 

http://answers.perforce.com/articles/KB/2490

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a942a5e6-ca29-45d7-99bd-73d8272ff3b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim Hargreaves

unread,
Oct 16, 2015, 1:31:52 PM10/16/15
to Jenkins Users
What we do is just have a user with read only access perform the sync and just have the workspace set to 'allwrite'

Ginga, Dick

unread,
Oct 16, 2015, 2:09:56 PM10/16/15
to jenkins...@googlegroups.com

I think that will let you edit the copy of the file in the workspace but you can’t check it out and in.

--

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Tim Hargreaves

unread,
Oct 16, 2015, 3:34:21 PM10/16/15
to Jenkins Users
My mistake. Missed the part where you want to submit it.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/DhHKe2g4a50/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E2D867D63C%40AMERMBX02.PERKINELMER.NET.

Rob Petti

unread,
Oct 17, 2015, 11:37:50 PM10/17/15
to Jenkins Users
Your user simply doesn't have write permissions to the file in Perforce.

If you still have issues, contact Perforce support, as this is not related to Jenkins.

Sanjeev Singh

unread,
Oct 19, 2015, 7:16:45 AM10/19/15
to Jenkins Users
Thanks Dick, Tim & Rob for the prompt reply to my post.
It looks like the permission issue. The user that I am using in Jenkins, is not having write permission on my project node in perforce.
I will get that checked. Thanks !!
- Sanjeev
Reply all
Reply to author
Forward
0 new messages