jobs:
- gerrit-whitesource-scan
branch: 'master'
+ mvn-clean-install: true
+ mvn-settings: 'whitesource-scan-project-settings'
project: 'whitesource/scan-project-jobs'
project-name: 'whitesource-scan-project'
wss-product-name: EXAMPLE-ORG
- wss-unified-agent-config: '.config/wss-unified-agent.config'
Macros
======
+lf-infra-wss-mvn-clean-install
+------------------------------
+
+Run maven clean install. Applicable to Maven based repos.
+
lf-infra-wss-unified-agent-scan
-------------------------------
: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: openjdk8)
+ :mvn-clean-install: Run maven clean install before the code scan. (default: false)
+ :mvn-global-settings: The name of the Maven global settings to use for
+ Maven configuration. (default: global-settings)
+ :mvn-version: Version of maven to use. (default: mvn35)
+ :pom: Path of the pom.xml file.
:stream: Keyword used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
# Macros #
##########
+- builder:
+ name: lf-infra-wss-mvn-clean-install
+ builders:
+ - conditional-step:
+ condition-kind: boolean-expression
+ condition-expression: '{mvn-clean-install}'
+ steps:
+ - maven-target:
+ maven-version: '{mvn-version}'
+ pom: '{mvn-pom}'
+ goals: 'clean install'
+ settings: '{mvn-settings}'
+ settings-type: cfp
+ global-settings: 'global-settings'
+ global-settings-type: cfp
+
- builder:
name: lf-infra-wss-unified-agent-scan
builders:
git-url: '$GIT_URL/$PROJECT'
github-url: 'https://github.com'
java-version: openjdk8
+ mvn-clean-install: false
+ mvn-global-settings: global-settings
+ mvn-pom: ''
+ mvn-version: mvn35
stream: master
submodule-recursive: true
submodule-timeout: 10
- lf-infra-pre-build
- lf-update-java-alternatives:
java-version: '{java-version}'
+ - lf-infra-wss-mvn-clean-install:
+ mvn-clean-install: '{mvn-clean-install}'
+ mvn-version: '{mvn-version}'
+ mvn-pom: '{mvn-pom}'
+ mvn-settings: '{mvn-settings}'
- lf-infra-wss-unified-agent-scan
- job-template:
--- /dev/null
+---
+features:
+ - Allows maven to run a clean install step before
+ the WhiteSource scan runs the Unified Agent to
+ fetch additional dependencies. Set to false by
+ default.