Git Credential Integration
Available under the Integration Family: generic
Git Credential Integration is used to connect Shippable DevOps Assembly Lines platform to Source Control Systems over HTTP protocol. Typically this happens for public projects by default, but for private projects we always use SSH. In some cases, especially using Git LFS on Bitbucket, it breaks. Hence this is a way you can override the default cloning method
You can create this from the integrations page by following instructions here: Adding an account integration.
This is the information you would require to create this integration:
- Name -- friendly name for the integration
- Host -- Http/s address to your source control system
- Port -- Connection Port on your host
- Username -- Username to connect to your SCM
- Password -- Password to connect to your SCM
Resources that use this Integration
Resources are the building blocks of assembly lines and some types of resources refer to integrations by their names. The following resource types can be created with a
Git Credential integration.
Default Environment Variables
When you create a resource with this integration, and use it as an
OUT for a
runCI job, a set of environment variables is automatically made available that you can use in your scripts.
<NAME> is the the friendly name of the resource with all letters capitalized and all characters that are not letters, numbers or underscores removed. Any numbers at the beginning of the name are also removed to create a valid variable. For example,
my-key-1 will be converted to
my_key_1 will be converted to
||Name supplied in the integration|
||Host supplied in the integration|
||Port supplied in the integration|
||Username supplied in the integration|
||Password supplied in the integration|
Shippable Utility Functions
To make it easy to use these environment variables, the platform provides a command line utility that can be used to work with these values.
How to use these utility functions is documented here.