Tags:
not added yet
Using Perforce with codeBeamerTable of Contents
Perforce IntegrationWe support external Perforce repositories, so you should have a Perforce server (it can be on localhost also) and know the connection details (protocol, host, port, depot, user, password ...). Perforce installation on codeBeamer serverBecause the Perforce codeBeamer integration uses Perforce client executable ("p4" or "p4.exe") this must be installed on codeBeamer server host and must be executable and available on the PATH of the codebeamer OS user. Creating a New Perforce RepositoryTo create new Perforce repository go to the SCM Repositories tab and click on New Repository link.
Select Perforce from the list and click Configure button. Fill mandatory fields.
Note: The Perforce URL must include the host name of the Perforce server, and can optionally include the protocol and port number. The default values for url are SSL protocol and 1666 port. The Perforce protocol can be any of the "ssl","tcp", or the standard Perforce protocol values . Examples for valid Perforce Urls:
Depot path is the name of the depot, can be provided with and without "//" as depot prefix. for ex.:
The subdirectories of Depots are not supported yet: so you can not enter "//depot/subdir" where the "subdir" is just a plain subdirectory of the "depot" Depot.
If you fill all necessary fields then click on the Save button and the new repository will be created. The system will verify the connection and reject the invalid settings or user/password if necessary. Managing your Perforce server with codeBeamerAfter you have create your Perforce repository in codeBeamer you will see the Perforce changes/commits/diffs in codeBeamer immediately. But this information is populated only at the time when Perforce repository is created: the new changes in Perforce depot will not be visible unless the repository is refreshed. To get a better integration you will need to instrument your Perforce server by installing a set of Perforce triggers to your server. These triggers are called ScmLoop and is provided as part of codeBeamer suite to make this integration possible. By installing ScmLoop triggers you will get following features:
Installing ScmLoop: the Perforce triggersInstalling ScmLoop - the codeBeamer integration- means that you install the ScmLoop as triggers on your Perforce server. For more information see: Perforce documentation about Triggers Important: because Perforce server executes triggers as a specific OS user you will need to be sure that all executables mentioned here is on the PATH of this user, and the ScmLoop installation directory is accessible/executable/writable by this OS user! Prerequisites:
Next: Pick a directory where the ScmLoop will be installed . This directory must be accessible and writable by the Perforce user of your OS which executes the triggers. For example use a directory like: /opt/scmloop/. You can find the scmloop.zip file inside your codeBeamer installation directory as $CB_HOME/tomcat/webapps/cb/scmloop.zip. Copy this file to the Perforce server to the scmloop directory (like /opt/scmloop) and unzip it here. The "scmloop" or "scmloop.bat" (depending your OS) is the main executable. Edit this, and update these lines: The CB_BASE_URL variable must contain the HTTP url of your codeBeamer installation, the SCM_DIR must contain the current directory where ScmLoop is installed. Binding ALL Perforce Depots to codeBeamer's Perforce repositoriesAfter the previous steps ScmLoop is installed on your Perforce host, but no Perforce triggers has been installed yet. So to get the correct Perforce->codeBeamer integration you will need to install the Perforce triggers for ALL the Perforce Depots you want to manage in codeBeamer. So if you have 10 Depots in Perforce and want to integrate all with codeBeamer then create 10 appropriate repositories in codeBeamer and bind each Depot to codeBeamer as described below. So to install the ScmLoop trigger go to the ScmLoop installation directory and there you will find a "perforce" directory and an install_triggers.xml Ant script here: ...SCM_DIR... ├── cb-commitclient.txt ├── perforce │ ├── install_triggers.xml │ ├── triggers-original.txt │ ├── triggers.txt │ ├── unix │ │ ├── change-commit │ │ └── change-content │ └── windows │ ├── change-commit.bat │ └── change-content.bat ├── scmloop ├── scmloop.bat ...
Install the triggers by executing this command in $SCM_DIR/perforce directory. Important: before executing the script ensure that you are logged in to Perforce using a p4 login command using an Perforce user-account which has necessary privileges to install triggers! ant -f install_triggers.xml
This script will ask about:
Enter these, and the script will install the Perforce triggers. A sample output looks like: The installation for this Depot is completed: the necessary Perforce triggers are added - can be verified using p4 triggers command.
Don't forget Repeat these for every Depot and install the necessary triggers for all of them!
Troubleshooting Perforce triggersWhen Perforce triggers does not work then:
Permissions: who can submit a change?After the ScmLoop triggers are installed into Perforce server then codeBeamer will allow only those submits by Perforce users who has appropriate Permissions to submit changes in codeBeamer. What happens here is:
Mapping of Perforce users to codeBeamer users and managing PermissionsIn order to make the Permission checks work codeBeamer has to figure out who is the codeBeamer account for an Perforce user. This happens like this:
So the best way to map Perforce accounts to codeBeamer accounts is to set the email address inside Perforce to match with the email address in codeBeamer. This screenshot illustrates a correct mapping: Streams and BranchesWe support Perforce branches as streams. You can find more information about this at: branching with streams. So when you create a repository and set the depot path then we find streams in the depot and you can switch to the selected stream. On the Changes tab you can switch between streams:
On the Files tab you can switch between streams:
Perforce labels are not supported.
|
Fast Links
codebeamer Overview codebeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, furthermore helps us to understand your interests and provide more personalized services to you, both on this website and through other media. With your permission we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. For more information about the cookies we use, please visit our Privacy Policy.Your preferences will apply to this website only.