:mvn-opts: Sets MAVEN_OPTS to start up the JVM running Maven. (default: '')
:mvn-params: Parameters to pass to the mvn CLI. (default: '')
:mvn-version: Version of maven to use. (default: mvn35)
+ :snyk-cli-options: Additional Snyk CLI options. (default: '')
:stream: Keyword that represents a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
mvn-opts: ""
mvn-params: ""
mvn-version: mvn35
+ snyk-cli-options: ""
snyk-token-credential-id: snyk-token
snyk-org-credential-id: snyk-org
stream: master
mvn-opts: "{mvn-opts}"
mvn-params: "{mvn-params}"
mvn-version: "{mvn-version}"
+ - string:
+ name: SNYK_CLI_OPTIONS
+ default: "{snyk-cli-options}"
+ description: Additional Snyk CLI commands and options
- string:
name: ARCHIVE_ARTIFACTS
default: "{archive-artifacts}"
--- /dev/null
+---
+fixes:
+ - |
+ Add SNYK_CLI_OPTIONS parameter which can be used to pass additional Snyk
+ CLI options as per https://docs.snyk.io/snyk-cli/cli-reference.
echo "Authenticate with SNYK_TOKEN..."
snyk auth "$SNYK_CLI"
echo "Running Snyk CLI..."
-snyk test --json --severity-threshold=low --org="$SNYK_ORG"
-snyk monitor --severity-threshold=low --org="$SNYK_ORG"
+snyk test --json --severity-threshold=low "$SNYK_CLI_OPTIONS" --org="$SNYK_ORG"
+snyk monitor --severity-threshold=low "$SNYK_CLI_OPTIONS" --org="$SNYK_ORG"