Move all maven definitions to variables
* Make sure that the maven version is not hard coded into any templates
or macros
* Set a global default maven version so that projects do not need to
define it unless they need a different version from the default
Change-Id: Ifd7dfe2e521fd88b52de96a00a3ef63953d4f682
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml
index 460bb3a..2d2d6c3 100644
--- a/jjb/global-macros.yaml
+++ b/jjb/global-macros.yaml
@@ -24,7 +24,7 @@
name: maven-docker-push-release
builders:
- maven-target:
- maven-version: 'mvn33'
+ maven-version: '{maven-version}'
pom: '{pom}'
goals: 'clean deploy -B -P {mvn-profile}'
settings: '{mvn-settings}'
@@ -40,7 +40,7 @@
name: maven-docker-push-daily
builders:
- maven-target:
- maven-version: 'mvn33'
+ maven-version: '{maven-version}'
pom: '{pom}'
goals: 'clean deploy -B -P {mvn-profile}'
settings: '{mvn-settings}'