X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-macros.yaml;h=4032c5f44790aa6cbcf3cd91fcd6b066019755cb;hb=bafd57c92d85a6c8b2c3fd3dbe30aa3a09f8f620;hp=f5021d262f64a1fc2020a4f4c4d3fe905d7aa7eb;hpb=e860cc760f59822c38484ef252c7690937caf9a7;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index f5021d26..4032c5f4 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -11,10 +11,18 @@ builders: - shell: !include-raw: ../shell/comment-to-gerrit.sh +- builder: + name: lf-ansible-config-file-provider + builders: + - config-file-provider: + files: + - file-id: "ansible-cfg" + target: "$HOME/.ansible/ansible.cfg" + - builder: name: lf-fetch-dependent-patches builders: - - shell: !include-raw: ../shell/gerrit-fetch-dependencies.sh + - shell: !include-raw-escape: ../shell/gerrit-fetch-dependencies.sh - inject: properties-file: $WORKSPACE/.dependency.properties @@ -34,7 +42,7 @@ - builder: name: lf-infra-capture-instance-metadata builders: - - shell: !include-raw: + - shell: !include-raw-escape: - ../shell/capture-instance-metadata.sh - builder: @@ -92,11 +100,11 @@ # Ensure python-tools are installed in case job template does not # call the lf-infra-pre-build macro. - ../shell/python-tools-install.sh - - shell: !include-raw: + - shell: !include-raw-escape: - ../shell/sudo-logs.sh - - shell: !include-raw: + - shell: !include-raw-escape: - ../shell/job-cost.sh - - shell: !include-raw: + - shell: !include-raw-escape: - ../shell/logs-deploy.sh - shell: !include-raw: - ../shell/logs-clear-credentials.sh @@ -106,12 +114,13 @@ - builder: name: lf-infra-package-listing builders: - - shell: !include-raw: + - shell: !include-raw-escape: - ../shell/package-listing.sh - builder: name: lf-infra-packer-build builders: + - lf-ansible-config-file-provider - conditional-step: condition-kind: boolean-expression condition-expression: "{openstack}" @@ -125,6 +134,7 @@ - config-file-provider: files: - file-id: "{packer-cloud-settings}" + target: "$HOME/.config/jenkins_jobs/cloud-env.pkrvars.hcl" variable: CLOUDENV - inject: properties-content: | @@ -155,6 +165,7 @@ - config-file-provider: files: - file-id: "{packer-cloud-settings}" + target: "$HOME/.config/jenkins_jobs/cloud-env.pkrvars.hcl" variable: CLOUDENV - inject: properties-content: | @@ -168,7 +179,7 @@ - builder: name: lf-infra-update-packer-images builders: - - shell: !include-raw: ../shell/update-cloud-images.sh + - shell: !include-raw-escape: ../shell/update-cloud-images.sh - builder: name: lf-infra-push-gerrit-patch @@ -186,7 +197,7 @@ - builder: name: lf-infra-sysstat builders: - - shell: !include-raw: + - shell: !include-raw-escape: - ../shell/sysstat.sh - builder: @@ -332,7 +343,7 @@ files: - file-id: lftoolsini target: "$HOME/.config/lftools/lftools.ini" - - shell: !include-raw: ../shell/release-job.sh + - shell: !include-raw-escape: ../shell/release-job.sh - builder: name: lf-sigul-sign-dir @@ -382,6 +393,7 @@ properties: "{sonar-properties}" java-opts: "{sonar-java-opts}" additional-arguments: "{sonar-additional-args}" + jdk: "{sonar-jdk}" - builder: name: lf-infra-sonar-with-prescan @@ -569,6 +581,38 @@ default: "{node-version}" description: Version of NodeJS to install. +- parameter: + name: lf-infra-sonar-cli-parameters + parameters: + - string: + name: TOX_DIR + default: "{tox-dir}" + description: | + Path to directory containing tox.ini file. + - string: + name: TOX_ENVS + default: "{tox-envs}" + description: | + Tox environments to run build against. + - string: + name: SONAR_SCANNER_VERSION + default: "{sonar-scanner-version}" + description: | + Version of sonar scanner to use. + Example: 4.7.0.2747 + - string: + name: SONAR_SCANNER_HOME + default: "{sonar-scanner-home}" + description: | + Sonar scanner home directory. + Example: $WORKSPACE/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux + - string: + name: SONAR_SCANNER_OPTS + default: "{sonar-scanner-opts}" + description: | + Sonar scanner Java options. + Example: -server + - parameter: name: lf-infra-tox-parameters parameters: @@ -582,7 +626,7 @@ default: "{tox-envs}" description: | Tox environments to run build against. - Example: docs,py2,py3 + Example: docs,py3 - parameter: name: lf-build-with-parameters-maven-release @@ -641,7 +685,7 @@ class-pattern: "**/classes" source-pattern: "**/src/main/java" # yamllint disable-line rule:line-length - exclusion-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**" + exclusion-pattern: "{exclude-pattern}" status-update: true targets: - branch: