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 IN or OUT for a runSh or 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. For example, my-key-1 will be converted to MYKEY1, and my_key_1 will be converted to MY_KEY_1.

Environment variable Description
<NAME>_INTEGRATION_NAME Name supplied in the integration
<NAME>_INTEGRATION_HOST Host supplied in the integration
<NAME>_INTEGRATION_PORT Port supplied in the integration
<NAME>_INTEGRATION_USERNAME Username supplied in the integration
<NAME>_INTEGRATION_PASSWORD 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.

Further Reading