perforce

Jenkins pipeline poll perforce

雨燕双飞 提交于 2019-12-01 08:20:36
问题 In continuation to jenkins-pipeline-syntax-for-p4sync - I am not able to get the "Poll SCM" option work for my pipeline job. Here is my configuration: "Poll SCM" is checked and set to poll every 10 minutes Pipeline script contains the following: node ('some-node') // not actual value { stage ('checkout') { checkout([ $class: 'PerforceScm', credential: '11111111-1111-1111-1111-11111111111', // not actual value populate: [ $class: 'AutoCleanImpl', delete: true, modtime: false, parallel: [

Cloning a Partial Perforce Repo with git-p4

丶灬走出姿态 提交于 2019-12-01 07:31:54
What is the proper method to do a selective import of a large Perforce repo? The git-p4 docs mention that you can do a -//depot/main/ignore switch to filter directories. Would this be equivalent to running a git filter-branch to remove the same directories after a clone? Additionally, it appears Perforce provides another feature called a "client" view. I have not used Perforce before, so I am a little unfamiliar with the usage model. My current understanding is that one would use p4 somehow to setup a proper client view before running git p4 clone . Does anyone have the complete details?

Changing workspace clobber option directly from Perforce command line

流过昼夜 提交于 2019-12-01 06:02:23
How to change perforce specs from command line? What I want to do is, i have a workspace whose clobber option is set to noclobber(default value). Now i want to change it to clobber. I know we can do it directly from p4v, but i dont want that. I also know that if we run 'p4 client' command in cmd, it will open P4CONFIG file in text editor, where we can change noclobber to clobber and save the file and its done, but i also dont want that too. Please tell me the specific command which directly changes the noclobber to clobber without using p4v or without editing P4CONFIG.txt. Thanks and Regards,

Jenkins Pipeline Syntax for “p4sync”

别说谁变了你拦得住时间么 提交于 2019-12-01 04:53:07
I'm trying to sync to Perforce in my pipeline script, but from the documentation I don't see a way to set the "workspace behavior", even though the plugin itself seems to have that capability . I want the "workspace" to be equivalent to the setting "Manual (custom view)" I can configure in the UI as described here . What parameters do I need to pass to the p4sync task to achieve that? You will need to use the full checkout DSL, the p4sync DSL is only basic. The easiest way is to use the snippet generator ( Pipeline Syntax link), select checkout: General SCM then Perforce Software from the SCM

Cloning a Partial Perforce Repo with git-p4

风格不统一 提交于 2019-12-01 04:49:04
问题 What is the proper method to do a selective import of a large Perforce repo? The git-p4 docs mention that you can do a -//depot/main/ignore switch to filter directories. Would this be equivalent to running a git filter-branch to remove the same directories after a clone? Additionally, it appears Perforce provides another feature called a "client" view. I have not used Perforce before, so I am a little unfamiliar with the usage model. My current understanding is that one would use p4 somehow

git clone multiple p4 paths in one git repo

前提是你 提交于 2019-12-01 04:10:43
I know that if I need to clone a perforce an existing p4 repository using command git p4 clone //depot/path/project But what if I want to multiple p4 paths into one git repo? say I have the following structure //depot---/Path1----/APath/... | | | | | --/BPath/... | | ---/Path2----/CPath/... | | ---/Path3 I only want to clone files under //depot/Path1/APath/ and //depot/Path2/CPath/ in my local directory ~/Desktop/mylocalRepo/ how to do it? The solution that I found was clonning different Perforce paths into different Git repositories and later merge them into a new repository while keeping the

Online Perforce Repositories [closed]

旧时模样 提交于 2019-12-01 03:13:01
Is anyone aware of of anybody offering hosted perforce servers? It doesn't have to be free - but preferably not too expensive! My understanding of Perforce is that it's free to use for personal projects, which mine is. Currently I have a perforce server setup on the same machine as the code is on which doesn't offer much security in case of computer failure. If not, can anyone recommend one of the alternative solutions that is similar to Perforce? I have experience of SVN but cannot say I enjoy the experience. LearnCocos2D You can use Perforce for free with up to 2 Users and if you have to you

How to apply a Perforce patch?

前提是你 提交于 2019-12-01 03:05:41
I generated a patch some time ago using the p4 diff command. However, now that I want to apply it, I realize that there is no way to apply a patch in Perforce. Since I did not use the -du option, the patch is in that obscure perforce format and can't be applied with patch(1) . The original changes have been lost. Also, that patch is over 300kb long so manual editing isn't really an option. What are my options ? Are there patch converters, or some Perforce extension allowing the application of these kind of patchs ? Perhaps Perforce's diff output format has changed, but @RumburaK's answer didn

Jenkins Pipeline Syntax for “p4sync”

只谈情不闲聊 提交于 2019-12-01 01:49:07
问题 I'm trying to sync to Perforce in my pipeline script, but from the documentation I don't see a way to set the "workspace behavior", even though the plugin itself seems to have that capability. I want the "workspace" to be equivalent to the setting "Manual (custom view)" I can configure in the UI as described here. What parameters do I need to pass to the p4sync task to achieve that? 回答1: You will need to use the full checkout DSL, the p4sync DSL is only basic. The easiest way is to use the

How to apply a Perforce patch?

二次信任 提交于 2019-11-30 22:15:01
问题 I generated a patch some time ago using the p4 diff command. However, now that I want to apply it, I realize that there is no way to apply a patch in Perforce. Since I did not use the -du option, the patch is in that obscure perforce format and can't be applied with patch(1) . The original changes have been lost. Also, that patch is over 300kb long so manual editing isn't really an option. What are my options ? Are there patch converters, or some Perforce extension allowing the application of