Jenkins

  1. Download these files and copy them into your Jenkins pipeline script. See the pipelines scripts in Jenkins Examples.

  2. Add the following environment variables:

Environment VariableValue/Description
BIT_CLOUD_ACCESS_TOKENa bit.cloud access token with permission levels required for your workflow
GIT_USER_NAMEa username for git commits made by the CI
GIT_USER_EMAILan email for git commits made by the CI

To learn more see the docs for this implementation of the workflow, or read the 'integrating Bit with your existing CI' blog.

In addition to these tokens, you may need specific tokens to access your Source Control system (e.g GitHub, GitLab).

Generating an access token

Create a permanent access token for your CI with the proper permissions to install, import and export components in the relevant scopes.

Head over to your organization page on bit.cloud, then click on the 'settings' tab, and then on the 'access tokens' tab.