From c47ad01a1ad865a528dcd38c537ba784375b8118 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Thu, 8 Feb 2018 15:05:59 -0500 Subject: [PATCH] Allow mvn-version to be overrided in distro-check Defaults to mvn33 however allows projects to override the mvn-version variable if they wish. Change-Id: Ic0f6e6a4536593d27161d8bbc36ae01d64376898 Signed-off-by: Thanh Ha --- .../distribution/distribution-jobs.yaml | 13 +++++++++++++ .../distribution/distribution-macros.yaml | 8 ++++---- .../distribution/distribution-templates.yaml | 17 ++++++++++++++++- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/jjb/integration/distribution/distribution-jobs.yaml b/jjb/integration/distribution/distribution-jobs.yaml index ef05554438..3fe467e047 100644 --- a/jjb/integration/distribution/distribution-jobs.yaml +++ b/jjb/integration/distribution/distribution-jobs.yaml @@ -188,6 +188,17 @@ - job-template: name: 'distribution-check-{stream}' + + ###################### + # Default parameters # + ###################### + + mvn-version: mvn33 + + ##################### + # Job Configuration # + ##################### + # Like a {project}-distribution-check, but few steps less as there is no upstream project involved. disabled: false @@ -239,6 +250,7 @@ - distribution-check-build-project: pom: 'distribution/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' # '{opendaylight-infra-parallel-mvn-opts}' is bad when there are multiple big features in SFT. - distribution-check-verify-groupid: gerrit-project: 'integration' @@ -247,6 +259,7 @@ - distribution-check-repeat-project-build: pom: 'distribution/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' # '{opendaylight-infra-parallel-mvn-opts}' is bad when there are multiple big features in SFT. - integration-set-variables - distribution-check-warn-9191 diff --git a/jjb/integration/distribution/distribution-macros.yaml b/jjb/integration/distribution/distribution-macros.yaml index d8625c6cb0..bd835f21f8 100644 --- a/jjb/integration/distribution/distribution-macros.yaml +++ b/jjb/integration/distribution/distribution-macros.yaml @@ -43,7 +43,7 @@ # pom: Relative path to pom file to use. Typically '$GERRIT_PROJECT/pom.xml'. builders: - maven-target: - maven-version: 'mvn33' + maven-version: '{mvn-version}' pom: '{pom}' goals: | clean deploy @@ -83,7 +83,7 @@ # dist-pom: Relative path to pom file to use. 'distribution/pom.xml' is recommended. builders: - maven-target: - maven-version: 'mvn33' + maven-version: '{mvn-version}' pom: '{dist-pom}' goals: | clean install @@ -187,7 +187,7 @@ - shell: | cp -r /tmp/r /tmp/t - maven-target: - maven-version: 'mvn33' + maven-version: '{mvn-version}' pom: '{pom}' goals: | clean install @@ -213,7 +213,7 @@ # dist-pom: Relative path to pom file to use. 'distribution/pom.xml' is recommended. builders: - maven-target: - maven-version: 'mvn33' + maven-version: '{mvn-version}' pom: '{dist-pom}' goals: | clean install diff --git a/jjb/integration/distribution/distribution-templates.yaml b/jjb/integration/distribution/distribution-templates.yaml index d9fcca0f14..10917810ad 100644 --- a/jjb/integration/distribution/distribution-templates.yaml +++ b/jjb/integration/distribution/distribution-templates.yaml @@ -4,6 +4,17 @@ - job-template: name: '{project-name}-distribution-check-{stream}' + + ###################### + # Default parameters # + ###################### + + mvn-version: mvn33 + + ##################### + # Job Configuration # + ##################### + # Operation: This job template builds a patch, creates a distribution containing # the patch (making sure dependencies are specified), # and performs the distribution deploy test. @@ -30,7 +41,7 @@ - distribution-karaf-version: karaf-version: '{karaf-version}' - maven-exec: - maven-version: mvn33 + maven-version: '{mvn-version}' scm: - integration-gerrit-scm: @@ -61,22 +72,26 @@ - distribution-check-build-project: pom: '$GERRIT_PROJECT/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT. - distribution-check-verify-groupid: gerrit-project: '$GERRIT_PROJECT' - distribution-check-download-deps: dist-pom: 'distribution/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT. - distribution-check-delete-snapshots - distribution-check-configure-remotes - distribution-check-repeat-project-build: pom: '$GERRIT_PROJECT/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT. - distribution-check-repeat-distro-build: dist-pom: 'distribution/pom.xml' mvn-opts: '{opendaylight-infra-mvn-opts}' + mvn-version: '{mvn-version}' # {opendaylight-infra-parallel-mvn-opts} is bad when there are multiple big features in SFT. - integration-set-variables - distribution-check-warn-9191 -- 2.36.6