11 Calls go-test.sh script against a Go project.
15 :go-root: Path to the Go project root directory.
20 Common Jenkins configuration for Go jobs.
28 Builds the code, downloads and runs a Snyk CLI scan of the code into the Snyk dashboard.
32 - {project-name}-go-snyk-cli-{stream}
36 :Comment Trigger: run-snyk
40 :build-node: The node to run build on.
41 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
42 :snyk-token-credential-id: Snyk API token to communicate with Jenkins.
43 :snyk-org-credential-id: Snyk organization ID.
47 :branch: The branch to build against. (default: master)
48 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
49 :build-timeout: Timeout in minutes before aborting build. (default: 60)
50 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
51 :java-version: Version of Java to use for the build. (default: openjdk11)
52 :snyk-cli-options: Snyk CLI options. (default: '')
53 :stream: Keyword that represents a release code-name.
54 Often the same as the branch. (default: master)
55 :submodule-recursive: Whether to checkout submodules recursively.
57 :submodule-timeout: Timeout (in minutes) for checkout operation.
59 :submodule-disable: Disable submodule checkout operation.
62 :gerrit_snyk_triggers: Override Gerrit Triggers.
67 Job which runs go test ./... to verify a Go project.
68 'go test ./...' runs unit tests on current folder and all subfolders.
72 - {project-name}-go-verify-{stream}"
76 :Comment Trigger: recheck|reverify
80 :build-node: The node to run build on.
81 :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
85 :branch: Git branch to fetch for the build. (default: master)
86 :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
87 :build-timeout: Timeout in minutes before aborting build. (default: 60)
88 :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
89 :stream: Keyword that represents a release code-name.
90 Often the same as the branch. (default: master)
91 :submodule-recursive: Whether to checkout submodules recursively.
93 :submodule-timeout: Timeout (in minutes) for checkout operation.
95 :submodule-disable: Disable submodule checkout operation.
97 :gerrit_verify_triggers: Override Gerrit Triggers.
98 :gerrit_trigger_file_paths: Override file paths to filter which file
99 modifications will trigger a build.