X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-macros.yaml;h=ddc9f01a89983a66e22dc5434611c03390b274d6;hb=5dc3432cae2f13d9e5151a00a76a78ce73d92d70;hp=01f95fe2da42decb9c34613978a0f6f1ca50d987;hpb=e50da79e348b4302edf4f2cc2ed4842830f9cc54;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index 01f95fe2..ddc9f01a 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -70,18 +70,32 @@ files: - file-id: "jenkins-log-archives-settings" variable: "SETTINGS_FILE" + - conditional-step: + condition-kind: regex-match + regex: "^.*logs-s3.*" + label: $S3_BUCKET + on-evaluation-failure: dont-run + steps: + - config-file-provider: + files: + - file-id: "jenkins-s3-log-ship" + target: $HOME/.aws/credentials - lf-infra-create-netrc: server-id: logs - shell: !include-raw: # 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/job-cost.sh - shell: !include-raw: - ../shell/logs-deploy.sh - shell: !include-raw: - ../shell/logs-clear-credentials.sh - description-setter: - regexp: "^Build logs: .*" + regexp: "(^(Nexus|S3) build logs: .*)" - builder: name: lf-infra-package-listing @@ -111,6 +125,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 +158,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: @@ -203,6 +223,30 @@ - shell: !include-raw-escape: ../shell/maven-central.sh - lf-provide-maven-settings-cleanup +- builder: + name: lf-packagecloud-file-provider + builders: + - config-file-provider: + files: + - file-id: ".packagecloud" + target: "$HOME/.packagecloud" + - config-file-provider: + files: + - file-id: "packagecloud_api" + target: "$HOME/packagecloud_api" + +- builder: + name: lf-packagecloud-push + builders: + - inject: + properties-content: | + BUILD_DIR={build-dir} + PACKAGECLOUD_ACCOUNT={packagecloud-account} + PACKAGECLOUD_REPO={packagecloud-repo} + DEBIAN_DISTRIBUTION_VERSIONS={debian-distribution-versions} + RPM_DISTRIBUTION_VERSIONS={rpm-distribution-versions} + - shell: !include-raw-escape: ../shell/packagecloud-push.sh + - builder: name: lf-maven-install builders: @@ -223,13 +267,6 @@ - file-id: "{settings-file}" variable: "SETTINGS_FILE" -- builder: - name: lf-pip-install - builders: - - inject: - properties-content: PIP_PACKAGES={pip-packages} - - shell: !include-raw-escape: ../shell/pip-install.sh - - builder: name: lf-provide-maven-settings-cleanup builders: @@ -260,10 +297,20 @@ 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 +- builder: + name: lf-rtdv3-build + builders: + - inject: + properties-content: | + DEFAULT_VERSION={default-version} + - shell: !include-raw-escape: ../shell/rtdv3.sh + - builder: name: check-info-votes builders: @@ -324,7 +371,7 @@ sonar-name: Sonar scanner-name: SonarQubeScanner task: "{sonar-task}" - project: "sonar-project.properties" + project: "{sonar-project-file}" properties: "{sonar-properties}" java-opts: "{sonar-java-opts}" additional-arguments: "{sonar-additional-args}" @@ -338,7 +385,7 @@ sonar-name: Sonar scanner-name: SonarQubeScanner task: "{sonar-task}" - project: "sonar-project.properties" + project: "{sonar-project-file}" properties: "{sonar-properties}" java-opts: "{sonar-java-opts}" additional-arguments: "{sonar-additional-args}" @@ -508,15 +555,22 @@ - string: name: VERSION default: "" - description: "This is the tag, Example: 1.0.0" + description: "Version to release, for example: 1.0.0" - string: - name: LOG_DIR + name: GIT_TAG default: "" - description: "Log dir, example: project-maven-stage-master/17/" + description: "Tag to push to git repo; optional, defaults to VERSION" - string: - name: DISTRIBUTION_TYPE + name: LOG_DIR default: "" - description: "Set to maven for build with parametes" + description: "Log dir, for 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}"