java-version: openjdk11 # Scanner is a jar
nexus-iq-cli-version: 1.140.0-01
nexus-iq-namespace: "" # Recommend a trailing dash when set. Example: odl-
+ nexus-target-build: "**/*"
pre-build-script: "# pre-build script goes here"
python-version: python3
requirements-file: requirements.txt
name: NEXUS_IQ_CLI_VERSION
default: "{nexus-iq-cli-version}"
description: Nexus IQ CLI jar to download and run.
+ - string:
+ name: NEXUS_TARGET_BUILD
+ default: "{nexus-target-build}"
+ description: File or dir to scan by Nexus CLI.
wrappers:
- lf-infra-wrappers:
wrappers:
- credentials-binding:
- text:
- credential-id: sonar-token-smo-ves
+ credential-id: sonar-token-{project-name}
variable: SONAR_TOKEN
builders:
- lf-infra-pre-build
sonarcloud: false
sonarcloud-project-key: ""
sonarcloud-project-organization: ""
- sonarcloud-api-token: ""
+ sonarcloud-api-token-cred-id: sonarcloud-api-token
sonarcloud-qualitygate-wait: false
# SonarCloud scan using jdk8 will become deprecated by Oct, 2020
# Projects not compatible with jdk11 can set java-version to something else
however to use a specific version of the sonar-maven-plugin we
can call "org.codehaus.mojo:sonar-maven-plugin:3.3.0.603:sonar".
+ wrappers:
+ - credentials-binding:
+ - text:
+ credential-id: '{sonarcloud-api-token-cred-id}'
+ variable: API_TOKEN
+
builders:
- lf-infra-pre-build
- lf-infra-tox-install:
sonarcloud-project-key: "{sonarcloud-project-key}"
# yamllint disable-line rule:line-length
sonarcloud-project-organization: "{sonarcloud-project-organization}"
- sonarcloud-api-token: "{sonarcloud-api-token}"
sonarcloud-java-version: "{sonarcloud-java-version}"
sonarcloud-qualitygate-wait: "{sonarcloud-qualitygate-wait}"
scan-dev-branch: "{scan-dev-branch}"