diff options
author | pmikus <pmikus@cisco.com> | 2021-07-13 14:18:46 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-08-17 13:33:17 +0000 |
commit | 6968c5b038a2af220259ac43737dac1ef9253377 (patch) | |
tree | 1dc0b62fed35866661ec76bfd4638292f707e812 /jjb/global-macros.yaml | |
parent | fa5e3cd03be280f52b29c3b4ddcb302c4117e79f (diff) |
Global: Docs generation in s3
+ Rework report/docs/trending jobs in CSIT
to utilize AWS S3 cloudfront
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Ica2757ba8dc31792631c8d6b53b332ebf688b15e
Diffstat (limited to 'jjb/global-macros.yaml')
-rw-r--r-- | jjb/global-macros.yaml | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index eed5c0be..8059ac55 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -648,6 +648,33 @@ - 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. # @@ -725,6 +752,24 @@ 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: - config-file-provider: @@ -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 |