summaryrefslogtreecommitdiffstats
path: root/jjb/global-macros.yaml
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2023-07-05 22:26:37 -0400
committerDave Wallace <dwallacelf@gmail.com>2023-07-06 18:15:28 +0000
commit81406ff40a0f9e28de6df3a96006a93a446f75c6 (patch)
tree7dde2702464501573c5a44c8fcdea149d92e283e /jjb/global-macros.yaml
parent022be5a66140db5d9d0ef17e3c6f010ea156d70c (diff)
Replace vpp-gcc job with vpp-cov job per-patch
- the original gcc job was intended to ensure that gcc builds worked to generate test coverage reports. The vpp-cov-verify job produces test coverage reports per patch and stores them in the S3 7-day docs retention bucket. Change-Id: I28c7c323ea8d673cdee66b85189e20029e63336d Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'jjb/global-macros.yaml')
-rw-r--r--jjb/global-macros.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml
index 508a6217..25d2785c 100644
--- a/jjb/global-macros.yaml
+++ b/jjb/global-macros.yaml
@@ -801,6 +801,33 @@
fail-build: false
- publisher:
+ name: fdio-infra-publish-cov-7day
+ # macro to finish up a verify docs build.
+ #
+ # Handles the following:
+ # - Mapping 7-day retention S3 bucket credentials for verify job docs upload
+ # - Cleanup workspace
+ publishers:
+ - postbuildscript:
+ builders:
+ - role: BOTH
+ build-on:
+ - ABORTED
+ - FAILURE
+ - NOT_BUILT
+ - SUCCESS
+ - UNSTABLE
+ build-steps:
+ - fdio-infra-ship-cov-7day
+ 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-docs-7day
# macro to finish up a verify docs build.
#
@@ -912,6 +939,20 @@
- ../global-jjb/shell/logs-clear-credentials.sh
- builder:
+ name: fdio-infra-ship-cov-7day
+ builders:
+ - config-file-provider:
+ files:
+ - file-id: "jenkins-s3-vpp-docs-ship"
+ target: $HOME/.aws/credentials
+ - shell: !include-raw:
+ - scripts/terraform_s3_docs_ship.sh
+ - shell: !include-raw:
+ - scripts/publish_cov.sh
+ - shell: !include-raw:
+ - ../global-jjb/shell/logs-clear-credentials.sh
+
+- builder:
name: fdio-infra-ship-docs-7day
builders:
- config-file-provider: