This documentation is not maintained. Please refer to doc.castsoftware.com/technologies to find the latest updates.

Summary: Information about the GIT File Extractor 1.4.x for the CAST Delivery Manager Tool. This extension is a file extractor.
  • This GIT extractor is not actively maintained and can only be used via the legacy CAST Management Studio and Delivery Manager Tool.
  • There is no support in AIP Console for extracting source code for delivery direct from a GIT repository - the only source code delivery methods available are via ZIP/archive file, or direct from a shared network folder.

Extension ID

com.castsoftware.dmtgitextractor

What's new?

Please see: GIT - 1.4 - Release Notes for more information.

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.
  • With regard to SSH protocol, you must ensure that you have an SSH key setup already in your GITHub account for the machine on which you will run the extension via the CAST Delivery Manager Tool. If the key is not set up and you attempt to use the SSH protocol, then an error message will be displayed.
  • Browse option is not supported for GIT as there is no API available from GIT vendors to browse folders remotely.

Supported GIT hosting sites

  • GitLab
  • Github
  • Bitbucket
  • RocketGit

CAST AIP compatibility

This extension is compatible with:

CAST AIP release

Supported

≥ 8.2.x(tick)

Download and installation instructions

Please see:

  • 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:

RepositoryURL format
LocalC:/[path]/.git
http/httpshttps://github.com/<account>/TEST.git
SSHgit@github.com:<account>/TEST.git
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:

  • if this option is used it will override any selection made for the Branch option (see option 3 below) - in other words, it is not possible to select both Revision and Branch.
  • selecting the revision based on a revision tag is currently not supported
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:

  • if the Revision option (see option 2 above) is used, any selection made in the Branch field will be ignored - in other words, it is not possible to select both Revision and Branch.
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:

  • Local > The credentials are saved in the user's local workspace on the current machine. Choose this option if you do not want the password to be available to other Delivery Managers.
  • Server > The credentials are saved locally (as above) and are also synchronized back to the CAST AIC Portal (i.e. the Source Code Delivery Folder). Choose this option if you want the password to be available to other Delivery Managers.