From 6968c5b038a2af220259ac43737dac1ef9253377 Mon Sep 17 00:00:00 2001 From: pmikus Date: Tue, 13 Jul 2021 14:18:46 +0000 Subject: Global: Docs generation in s3 + Rework report/docs/trending jobs in CSIT to utilize AWS S3 cloudfront Signed-off-by: pmikus Change-Id: Ica2757ba8dc31792631c8d6b53b332ebf688b15e --- jjb/global-macros.yaml | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) (limited to 'jjb/global-macros.yaml') diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index eed5c0bed..8059ac550 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -647,6 +647,33 @@ - developers - recipients +- publisher: + name: fdio-infra-publish-docs + # macro to finish up a build. + # + # Handles the following: + # - Shipping docs S3 logs repository + # - Cleanup workspace + publishers: + - postbuildscript: + builders: + - role: BOTH + build-on: + - ABORTED + - FAILURE + - NOT_BUILT + - SUCCESS + - UNSTABLE + build-steps: + - fdio-infra-ship-docs + mark-unstable-if-failed: true + - workspace-cleanup: + exclude: + # Do not clean up *.jenkins-trigger files for jobs that use a + # properties file as input for triggering another build. + - "**/*.jenkins-trigger" + fail-build: false + - publisher: name: fdio-infra-publish # macro to finish up a build. @@ -724,6 +751,24 @@ days-to-keep: '{build-days-to-keep}' num-to-keep: '{build-num-to-keep}' +- builder: + name: fdio-infra-ship-docs + builders: + - config-file-provider: + files: + - file-id: "jenkins-log-archives-settings" + variable: "SETTINGS_FILE" + - config-file-provider: + files: + - file-id: "jenkins-s3-docs-ship" + target: $HOME/.aws/credentials + - shell: !include-raw: + - scripts/publish_library_py.sh + - shell: !include-raw: + - scripts/publish_docs.sh + - shell: !include-raw: + - ../global-jjb/shell/logs-clear-credentials.sh + - builder: name: fdio-infra-ship-backup-logs builders: @@ -732,7 +777,9 @@ - file-id: "jenkins-s3-log-ship" variable: $HOME/.aws/credentials - shell: !include-raw: - - scripts/logs_publish.sh + - scripts/publish_library_py.sh + - shell: !include-raw: + - scripts/publish_logs.sh - shell: !include-raw: - ../global-jjb/shell/logs-clear-credentials.sh -- cgit 1.2.3-korg