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 token found in your command.
.circleci/config.yml file to your CircleCI project. Edit the
.yml file to include the context name (RESHIFT_SCAN) and environment variable (RESHIFT_TOKEN). See the example below.
version: 2.1orbs: maven: email@example.com: maven_test: jobs:maven/test:context: RESHIFT_SCANcommand: 'compile com.softwaresecured.reshift:maven-plugin:LATEST:analyse com.softwaresecured.reshift:maven-plugin:LATEST:upload -Dreshift.token=$RESHIFT_TOKEN
Commit the changes, and it should automatically kick off a build. The results will be reflected on your Reshift dashboard.
If you have any more questions, please email us at firstname.lastname@example.org!