X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fglobal-macros.yaml;h=9c0eeacbb2e8fb12c3e222b7e02d8115de957d60;hb=HEAD;hp=ca925ebc07b72719e395d380e9ebc2acce31ecc8;hpb=9336e2d1f5678dda74d5740418e616fe5837609e;p=ci-management.git diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index ca925ebc0..2de57c726 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -368,6 +368,27 @@ unstable: '{skip-vote}' notbuilt: '{skip-vote}' +- trigger: + name: gerrit-trigger-csit-terraform + # Manual trigger common for csit-terraform jobs. + triggers: + - gerrit: + server-name: 'Primary' + trigger-on: + - comment-added-contains-event: + comment-contains-value: '{trigger-word}' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + skip-vote: + successful: '{skip-vote}' + failed: '{skip-vote}' + unstable: '{skip-vote}' + notbuilt: '{skip-vote}' + - trigger: name: gerrit-trigger-csit-vpp-devicetest-full # Comes from CSIT, for automatic jobs running device tests with VPP builds. @@ -779,6 +800,33 @@ - "**/*.jenkins-trigger" 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. @@ -824,8 +872,8 @@ - SUCCESS - UNSTABLE build-steps: - - shell: !include-raw: scripts/post_build_executor_info.sh - - shell: !include-raw: scripts/post_build_deploy_archives.sh + - shell: !include-raw-escape: scripts/post_build_executor_info.sh + - shell: !include-raw-escape: scripts/post_build_deploy_archives.sh - fdio-infra-ship-logs mark-unstable-if-failed: true - workspace-cleanup: @@ -883,23 +931,37 @@ files: - file-id: "jenkins-s3-docs-ship" target: $HOME/.aws/credentials - - shell: !include-raw: + - shell: !include-raw-escape: - scripts/terraform_s3_docs_ship.sh - - shell: !include-raw: + - shell: !include-raw-escape: - scripts/publish_docs.sh - shell: !include-raw: - ../global-jjb/shell/logs-clear-credentials.sh - builder: - name: fdio-infra-ship-docs-7day + 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: + - shell: !include-raw-escape: - scripts/terraform_s3_docs_ship.sh + - shell: !include-raw-escape: + - 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: + files: + - file-id: "jenkins-s3-vpp-docs-ship" + target: $HOME/.aws/credentials + - shell: !include-raw-escape: + - scripts/terraform_s3_docs_ship.sh + - shell: !include-raw-escape: - scripts/publish_docs.sh - shell: !include-raw: - ../global-jjb/shell/logs-clear-credentials.sh @@ -911,7 +973,7 @@ files: - file-id: "jenkins-s3-log-ship" target: $HOME/.aws/credentials - - shell: !include-raw: + - shell: !include-raw-escape: - scripts/publish_library_py.sh - shell: !include-raw: - scripts/publish_logs.sh