Add submodule-disable for submodule operations
[releng/global-jjb.git] / docs / jjb / lf-whitesource-jobs.rst
1 ################
2 WhiteSource Jobs
3 ################
4
5 Macros
6 ======
7
8 lf-infra-wss-mvn-clean-install
9 ------------------------------
10
11 Run maven clean install. Applicable to Maven based repos.
12
13 lf-infra-wss-unified-agent-scan
14 -------------------------------
15
16 Run WhiteSource Unified Agent for a project.
17
18 Job Templates
19 =============
20
21 WhiteSource Unified Agent scan
22 ------------------------------
23
24 Trigger WhiteSource code scans using Unified Agent. For more details:
25 https://whitesource.atlassian.net/wiki/spaces/WD/pages/33718339/Unified+Agent
26
27 The WhiteSource Unified Agent scanner runs using a configuration file:
28 https://s3.amazonaws.com/unified-agent/wss-unified-agent.config
29
30 :Template Names:
31
32     - {project-name}-whitesource-scan-{stream}
33     - gerrit-whitesource-scan
34     - github-whitesource-scan
35
36 :Comment Trigger: run-whitesource
37
38 :Required parameters:
39
40     :build-node: The node to run build on.
41     :jenkins-ssh-credential: Credential to use for SSH. (Set in defaults.yaml)
42     :wss-product-name: Product to asociate the WhiteSource report in the dashboard.
43     :wss-unified-agent-config: Path to wss-unifed-agent.config.
44
45 :Optional parameters:
46
47     :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
48     :build-timeout: Timeout in minutes before aborting build. (default: 60)
49     :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
50     :java-version: Version of Java to use for the build. (default: openjdk8)
51     :mvn-clean-install: Run maven clean install before the code scan. (default: false)
52     :mvn-global-settings: The name of the Maven global settings to use for
53         Maven configuration. (default: global-settings)
54     :mvn-version: Version of maven to use. (default: mvn35)
55     :pom: Path of the pom.xml file.
56     :stream: Keyword used to represent a release code-name.
57         Often the same as the branch. (default: master)
58     :submodule-recursive: Whether to checkout submodules recursively.
59         (default: true)
60     :submodule-timeout: Timeout (in minutes) for checkout operation.
61         (default: 10)
62     :submodule-disable: Disable submodule checkout operation.
63         (default: false)
64     :wss-unified-agent-version: WhiteSource Unified Agent version package to download
65         and use.
66     :gerrit_trigger_file_paths: Override file paths which used to filter which
67         file modifications will trigger a build. Refer to JJB documentation for
68         "file-path" details.
69         https://docs.openstack.org/infra/jenkins-job-builder/triggers.html#triggers.gerrit
70     :gerrit_wss_triggers: Override Gerrit Triggers.