X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-python-jobs.yaml;h=1c711c1b043b480ba158add59aad7bbefbbf4d67;hb=refs%2Ftags%2Fv0.83.2;hp=d9fcdb82348c0a3a4e78ec8f80b00b447236b2ca;hpb=1d572dc0110bdd1d9881fa6b4f2d60d43b6138da;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index d9fcdb82..1c711c1b 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -86,6 +86,7 @@ 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 @@ -118,6 +119,10 @@ 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: @@ -420,7 +425,7 @@ 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 @@ -478,6 +483,12 @@ 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: @@ -502,7 +513,6 @@ 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}"