On this page:
Target audience:
CAST Administrators
Extension description
This extension provides the means to extract source code from a Git repository. In other words, file based source code that does not reside in a simple local or network folder. This extension is similar in function to the extractors for SVN and TFS that are provided "out of the box" in the CAST Delivery Manager Tool.
In what situation should you install this extension?
This extension should be used when you want to extract file based source code that is stored in a Git repository.
Technical information
- The extension does not contain a source code "discoverer" (to determine the type of source code project) and therefore relies on other discoverers that are already installed in the CAST Delivery Manager Tool to do so.
- This extension supports both local and remote Git repositories:
- The URL format for a local folder should be for example C:/[path]/.git.
- For remote repositories, http/https and SSH protocols are supported, however the remote repositories are cloned to the hard drive on which the CAST Delivery Manager Tool is being run from. The %TEMP% folder is used to store the cloned repository. When the packaging action has been completed in the CAST Delivery Manager Tool, the cloned repository will be removed from the local disk.
What's new?
Please see: Git 1.3.1 - Release Notes for more information.
Supported GIT hosting sites
- GitLabĀ
- Github
- Bitbucket
- RocketGit
CAST AIP release | Supported |
---|---|
8.2.x | |
8.1.x | |
8.0.x | |
7.3.x |
Download and installation instructions
Please see:
- http://doc.castsoftware.com/display/EXTEND/Download+an+extension
- http://doc.castsoftware.com/display/EXTEND/Install+an+extension
- This extension contains a File extractor and you should take note of the specific instructions in the installation guide that explains how to package your source code with the CAST Delivery Manager Tool when you have an existing Version.
- The latest release status of this extension can be seen when downloading it from the CAST Extend server.
Extension interface
The following screen shots show the differences in the product when the extension is installed:
- In the CAST Delivery Manager Tool a new entry called "GIT" will be added to the Add Package wizard:
- When selected the above item provides the following screen with the GIT Repository option already selected:
- The Package Configuration tab then offers the following interface to access your GIT repository:
Option | Explanation | ||||||||
---|---|---|---|---|---|---|---|---|---|
1 | Enter the direct URL for your Git repository in the form:
| ||||||||
2 | Enter the commit hash of the revision you want to extract. If omitted, the HEAD revision of the selected branch is chosen. Note that:
| ||||||||
3 | If the code you require is located in a specific Git branch, enter the branch name here to ensure that the code from that branch is extracted. If omitted, the default main branch will be used. Note that:
| ||||||||
4 | When this option is unticked (default position), if the certificate for the GIT repository is invalid (self-signed, unknown root CA, expired), then extraction fails. If this option is ticked, extraction succeeds in cases described previously - in other words, invalid HTTPS certificates are ignored. Note that ticking this option has no effect on an extraction which already succeeds (HTTP, valid HTTPS). | ||||||||
5 | Tick the Credentials option if the Git repository requires authenticated access. Remember Password This option enables you to force the CAST Delivery Manager Tool to save the access credentials you have entered above. Choosing an option or not has no impact on the extraction (i.e. the CAST Delivery Manager Tool can still access the required resources). However, if you are creating subsequent Versions using the same repositories, you can choose to store the password in which case you will not need to re-enter it. There are two save options:
|