Automate Transformations Management with Rudder CLI and GitLab CI/CD
Beta
Leverage GitLab CI/CD components for automating validation, testing, and deployment of your RudderStack transformations.
Available Plans
free
starter
growth
enterprise
4 minute read
This guide explains how to validate, test, and manage your RudderStack transformations directly via GitLab CI/CD pipelines using the Rudder CLI CI/CD components.
For testing or development purposes only: Generate a Personal Access Token with Read-Write role
RudderStack recommends using a workspace-level Service Access Token for authentication.
Any action authenticated by a Personal Access Token will break if the user is removed from the organization or a breaking change is made to their permissions.
Token permissions for legacy RBAC system
If you are on the legacy Permissions Management (RBAC) system, your workspace-level Service Access Token should have the Admin role and Grant edit access toggled on under Transformations.
The following Rudder CLI CI/CD components are available for managing transformations:
validate
This component validates the project structure and YAML configurations in the specified directory. By default, jobs defined in this component run in the validate stage.
Path to the folder containing Rudder CLI project files
-
access_token Required
RudderStack access token
-
cli_version
Version of the Rudder CLI tool to use
0.13.1
stage
Stage in which the job should run
validate
transformations-test
This component tests transformations defined in your project by executing their code against test input events. By default, jobs defined in this component run in the test stage.
Path to the folder containing Rudder CLI project files
-
access_token Required
RudderStack access token
-
applies_to
Test mode: all or modified
modified
verbose
Show detailed output including diffs for failures
false
cli_version
Version of the Rudder CLI tool to use
0.13.1
stage
Stage in which the job should run
test
apply
This component syncs the transformation and library definitions in the specified directory to your RudderStack workspace. By default, jobs defined in this component run in the deploy stage.
Validation: The validate component ensures your project files are correctly structured before any further steps.
Testing: The transformations-test component runs your transformation code against defined test cases. Using applies_to: modified in merge requests is recommended for faster feedback.
Deployment: When changes are merged into the default branch, the apply component pushes the updates to your RudderStack workspace.
Questions? We're here to help.
Join the RudderStack Slack community or email us for support
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.