X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fglobal-macros.yaml;h=8601fa8d825d23ae9103746015dd72f89787fcb2;hb=c6a1db7f198f69483ef978f8ed5e595a2b06d973;hp=7f20ada8938d5d77921710429d4a29e72e75d2aa;hpb=e8386a2101065ca9234d934035f8ec1a68c18cf7;p=ci-management.git diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index 7f20ada89..8601fa8d8 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -48,6 +48,15 @@ name: MAVEN_SELECTOR default: '{maven}' description: 'Maven selector to be used by shell scripts' + +- parameter: + name: maven-exec + parameters: + - string: + name: MVN + default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn' + description: 'Maven selector to be used by shell scripts' + - parameter: name: repo-name-parameter parameters: @@ -56,6 +65,22 @@ default: '{repo-name}' description: 'Name of repo to which to publish packaging' +- parameter: + name: compiler-parameter + parameters: + - string: + name: CC + default: '{cc}' + description: "CC parameter, can be gnu or clang" + +- parameter: + name: is-csit-vpp-job-parameter + parameters: + - string: + name: IS_CSIT_VPP_JOB + default: '{is-csit-vpp-job}' + description: "Parameter is True if this is a CSIT vpp job." + ##### SCMS - scm: @@ -102,6 +127,23 @@ timeout: 360 fail: true +- wrapper: + # This wrapper is used for all jobs that require no-activity timeouts + name: fdio-infra-wrappers-non-activity-timeout + wrappers: + - timeout: + type: no-activity + timeout: '{build-timeout}' + fail: true + - timestamps + - ssh-agent-credentials: + users: + - 'jenkins-gerrit-credentials' + - jclouds: + single-use: True + - openstack: + single-use: True + - wrapper: # This wrapper is required for all jobs as it configures the wrappers # needed by the fd.io infra. @@ -112,8 +154,14 @@ timeout: '{build-timeout}' timeout-var: 'BUILD_TIMEOUT' fail: true + - timestamps + - ssh-agent-credentials: + users: + - 'jenkins-gerrit-credentials' - jclouds: single-use: True + - openstack: + single-use: True ###### TRIGGERS - trigger: @@ -168,14 +216,19 @@ branches: - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' - # Force Jenkins to pass the same "expected" votes during start + # Force Jenkins always vote the values it should already have voted + # during the prior verify phase override-votes: true gerrit-build-started-verified-value: 1 - skip-vote: - successful: true - failed: true - unstable: true - notbuilt: true + gerrit-build-successful-verified-value: 1 + gerrit-build-failed-verified-value: 1 + gerrit-build-unstable-verified-value: 1 + gerrit-build-notbuilt-verified-value: 1 + gerrit-build-started-codereview-value: 0 + gerrit-build-successful-codereview-value: 0 + gerrit-build-failed-codereview-value: 0 + gerrit-build-unstable-codereview-value: 0 + gerrit-build-notbuilt-codereview-value: 0 # Publishers - publisher: @@ -245,4 +298,3 @@ variable: 'GLOBAL_SETTINGS_FILE' - file-id: '{settings-file}' variable: 'SETTINGS_FILE' -