X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-macros.yaml;h=3d06a08c007771964f0df6e925ad78b644fe3b51;hb=cde10ac12ac2600c3208634f4722d11b02ff6f74;hp=529254c92ad81c113ea92f0eb796897c38d9a5ab;hpb=d5ce4fd6497f1f484c695d32cfd96acb369978f4;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index 529254c9..3d06a08c 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -70,6 +70,16 @@ 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: @@ -78,6 +88,8 @@ - ../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: @@ -211,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: @@ -231,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: @@ -276,21 +305,11 @@ - builder: name: lf-rtdv3-build - builders: - - conditional-step: - condition-kind: file-exists - condition-filename: .readthedocs.yaml - on-evaluation-failure: dont-run - steps: - - inject: - properties-content: | - TOX_ENVS=docs,docs-linkcheck - - lf-infra-pre-build - - lf-infra-tox-install: - python-version: "python3" - - shell: !include-raw: ../shell/tox-run.sh - - shell: !include-raw: ../shell/rtdv3.sh + - inject: + properties-content: | + DEFAULT_VERSION={default-version} + - shell: !include-raw-escape: ../shell/rtdv3.sh - builder: name: check-info-votes @@ -536,11 +555,15 @@ - string: name: VERSION default: "" - description: "This is the tag, Example: 1.0.0" + description: "Version to release, for example: 1.0.0" + - string: + name: GIT_TAG + default: "" + description: "Tag to push to git repo; optional, defaults to VERSION" - string: name: LOG_DIR default: "" - description: "Log dir, example: project-maven-stage-master/17/" + description: "Log dir, for example: project-maven-stage-master/17/" - choice: name: DISTRIBUTION_TYPE choices: