Configure your CI/CD platform to use diversion
Navigate to the tokens page
Generate a new token
Store the Diversion client ID
Store the API Token securely
yml
file, create a new Shell build step with the following content:
$API_TOKEN
with the appropriate way to reference your secret from the secure storage.
Consult your platform’s docs and the secure storage docs.my-repository
with the name of your repository.dv status
will block until all the files are downloaded. This is important before starting to work.
It will also output the workspace ID if you want to reuse it for the next runs or view it in the web app.-new-workspace
will create a new workspace for each run of the CI/CD workflow. Passing a workspace argument here
is important, or else the clone command will prompt for user input and block. See dv help clone
for details.dv
when running locally.