X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-macros.yaml;h=3820a2e3bf34fe68f786ff5e996ef840baf8bc6a;hb=a24ad567a740f4f4ac82a794edf0528a58620daf;hp=ca7d478d80eec6ae15e76290b1756799c4fb20ea;hpb=227dc247632240097740bf3cfece2829bfd3cf14;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index ca7d478d..3820a2e3 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -76,6 +76,8 @@ # 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/sudo-logs.sh - shell: !include-raw: - ../shell/logs-deploy.sh - shell: !include-raw: @@ -111,6 +113,7 @@ PACKER_PLATFORM={platform} PACKER_TEMPLATE={template} PACKER_VERSION={packer-version} + UPDATE_CLOUD_IMAGE={update-cloud-image} - shell: !include-raw-escape: - ../shell/packer-install.sh - ../shell/packer-build.sh @@ -143,6 +146,11 @@ - shell: !include-raw: - ../shell/packer-clear-credentials.sh +- builder: + name: lf-infra-update-packer-images + builders: + - shell: !include-raw: ../shell/update-cloud-images.sh + - builder: name: lf-infra-push-gerrit-patch builders: @@ -260,7 +268,9 @@ name: lf-rtd-verify builders: - inject: - properties-content: DOC_DIR={doc-dir} + properties-content: | + DOC_DIR={doc-dir} + PYTHON={python-version} - shell: !include-raw-escape: ../shell/tox-install.sh - shell: !include-raw-escape: ../shell/rtd-verify.sh @@ -316,6 +326,33 @@ docker rmi -f $(docker images -a -q) exit 0 +- builder: + name: lf-infra-sonar + # Run a Sonar Jenkins Plugin + builders: + - sonar: + sonar-name: Sonar + scanner-name: SonarQubeScanner + task: "{sonar-task}" + project: "{sonar-project-file}" + properties: "{sonar-properties}" + java-opts: "{sonar-java-opts}" + additional-arguments: "{sonar-additional-args}" + +- builder: + name: lf-infra-sonar-with-prescan + # Run a Sonar Jenkins Plugin + builders: + - lf-sonar-prescan # Must be defined by caller + - sonar: + sonar-name: Sonar + scanner-name: SonarQubeScanner + task: "{sonar-task}" + project: "{sonar-project-file}" + properties: "{sonar-properties}" + java-opts: "{sonar-java-opts}" + additional-arguments: "{sonar-additional-args}" + ############## # PARAMETERS # ############## @@ -475,6 +512,29 @@ Tox environments to run build against. Example: docs,py2,py3 +- parameter: + name: lf-build-with-parameters-maven-release + parameters: + - string: + name: VERSION + default: "" + description: "This is the tag, Example: 1.0.0" + - string: + name: LOG_DIR + default: "" + description: "Log dir, example: project-maven-stage-master/17/" + - choice: + name: DISTRIBUTION_TYPE + choices: + - None + - container + - maven + description: "Set to maven for build with parameters" + - bool: + name: USE_RELEASE_FILE + default: "{use-release-file}" + description: "Set to False for job built with parameters" + ############## # PROPERTIES # ##############