X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=docs%2Fjjb%2Flf-maven-jobs.rst;h=be166c16fb84a3dd120f56a87437d82a93199717;hb=5f32d861578702e12e8ac05e74b106df2d1a6e71;hp=c9208a18b3dc51ca54b2ddb8811e52fcbb6dd2b5;hpb=42fbb1b57b7f344ef6193fb5391d787c5ade86ca;p=releng%2Fglobal-jjb.git diff --git a/docs/jjb/lf-maven-jobs.rst b/docs/jjb/lf-maven-jobs.rst index c9208a18..be166c16 100644 --- a/docs/jjb/lf-maven-jobs.rst +++ b/docs/jjb/lf-maven-jobs.rst @@ -104,6 +104,16 @@ lf-infra-sonatype-clm Runs a Sonatype CLM scan against a Maven project and pushes results to Nexus IQ server. +:Optional parameters: + :mvn-goals: The maven goals to perform for the build. + (default: clean install) + +lf-infra-snyk-cli-scanner +------------------------- + +Downloads the latest Snyk CLI and triggers a code scan. It publishes a report into +the Snyk dashboard. + :Optional parameters: :mvn-goals: The maven goals to perform for the build. (default: clean install) @@ -170,6 +180,52 @@ Produces a CLM scan of the code into Nexus IQ Server. :gerrit_merge_triggers: Override Gerrit Triggers. +Maven SNYK CLI +-------------- + +Builds the code, downloads and runs a Snyk CLI scan of the code into the Snyk dashboard. + +:Template Names: + + - {project-name}-maven-snyk-cli-{stream} + - gerrit-maven-snyk-cli + - github-maven-snyk-cli + +:Comment Trigger: run-snyk + +:Required parameters: + + :build-node: The node to run build on. + :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml) + :mvn-settings: The name of settings file containing credentials for the project. + :snyk-token-credential-id: Snyk API token to communicate with Jenkins. + :snyk-org-credential-id: Snyk organization ID. + +:Optional parameters: + + :branch: The branch to build against. (default: master) + :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) + :build-timeout: Timeout in minutes before aborting build. (default: 60) + :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) + :java-version: Version of Java to use for the build. (default: openjdk11) + :mvn-global-settings: The name of the Maven global settings to use for + Maven configuration. (default: global-settings) + :mvn-goals: The maven goals to perform for the build. + (default: clean install) + :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) + :stream: Keyword that represents a release code-name. + Often the same as the branch. (default: master) + :submodule-recursive: Whether to checkout submodules recursively. + (default: true) + :submodule-timeout: Timeout (in minutes) for checkout operation. + (default: 10) + :submodule-disable: Disable submodule checkout operation. + (default: false) + + :gerrit_snyk_triggers: Override Gerrit Triggers. + Maven JavaDoc Publish ---------------------