:mvn-opts: Sets MAVEN_OPTS. (default: '')
:mvn-params: Additional mvn parameters to pass to the cli. (default: '')
:mvn-version: Version of maven to use. (default: mvn35)
+ :nexus-iq-stage: Stage the policy evaluation will be run against on
+ the Nexus IQ Server. (default: 'build')
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
# PARAMETERS #
##############
+- parameter:
+ name: lf-clm-parameters
+ parameters:
+ - string:
+ name: NEXUS_IQ_STAGE
+ default: '{nexus-iq-stage}'
+ description: |
+ Stage the policy evaluation will be run against on the Nexus IQ Server.
+
- parameter:
name: lf-cmake-parameters
# Parameters useful in CMake builds.
mvn-opts: ''
mvn-params: ''
mvn-version: mvn35
+ nexus-iq-stage: 'build'
staging-profile-id: '' # Unused in this job
stream: master
submodule-recursive: true
+ nexus-iq-scan-patterns:
+ - '**/*.ear'
+ - '**/*.jar'
+ - '**/*.tar.gz'
+ - '**/*.war'
+ - '**/*.zip'
+
gerrit_clm_triggers:
- comment-added-contains-event:
comment-contains-value: run-clm$
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ branch: '{branch}'
+ stream: '{stream}'
+ lftools-version: '{lftools-version}'
+ - lf-infra-maven-parameters:
+ mvn-opts: '{mvn-opts}'
+ mvn-params: '{mvn-params}'
+ mvn-version: '{mvn-version}'
+ # Staging repos do not make sense for CLM jobs so set it blank.
+ staging-profile-id: '{staging-profile-id}'
+ - string:
+ name: ARCHIVE_ARTIFACTS
+ default: '{archive-artifacts}'
+ description: Artifacts to archive to the logs server.
+ - lf-clm-parameters:
+ nexus-iq-stage: '{nexus-iq-stage}'
+
#####################
# Job Configuration #
#####################
- ../shell/sonatype-clm.sh
- lf-provide-maven-settings-cleanup
- shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
- - sonatype-clm:
- application-name: '{project-name}'
+ - nexus-iq-policy-evaluator:
+ stage: '{nexus-iq-stage}'
+ application-type: 'manual'
+ application-id: '{project-name}'
+ scan-patterns: '{nexus-iq-scan-patterns}'
+ fail-build-network-error: true
- job-template:
name: '{project-name}-maven-clm-{stream}'