Integrating Reshift into your CircleCI build system.
If you don't already have a project set up, create a CircleCI Project. From the CircleCI app, click 'add projects', and select your code repository.
Go to the project settings
and 'create context'.
After you've created a context, click 'add environment variable' to secure your token.
Give it a name and add your
reshift tokenfound in your command.
.circleci/config.ymlfile to your CircleCI project. Edit the
.ymlfile to include the context name (RESHIFT_SCAN) and environment variable (RESHIFT_TOKEN). See the example below.
orbs: maven: circleci/[email protected]
workflows: maven_test: jobs:
command: 'compile com.softwaresecured.reshift:maven-plugin:LATEST:analyse com.softwaresecured.reshift:maven-plugin:LATEST:upload -Dreshift.token=$RESHIFT_TOKEN
**example is with Maven for Java. Add commands pertaining to your language and environment.
Commit the changes, and it should automatically kick off a build. The results will be reflected on your Reshift dashboard.