summaryrefslogtreecommitdiffstats
path: root/jjb/global-macros.yaml
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2017-02-24 12:51:11 -0800
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2017-02-24 12:51:11 -0800
commit3aaa7d49cbae59e14cedc26f09c7f2b216725cfe (patch)
tree7a8cbb61b7fa7d3484d1861f4d8d859785bb7f36 /jjb/global-macros.yaml
parente24658853e35cb730c21dd85e68b532aa0a88073 (diff)
Force maven to install in java jobs using scripts
The *version2* java jobs execute scripts that need ${MVN} to actually operate properly. As these scripts are happening before the standard maven build step maven is not installed yet. Ergo, we need an empty maven build step that makes sure that it's installed. Change-Id: I5a0979fdffa87f695b1bc575e24b04097889ea59 Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to 'jjb/global-macros.yaml')
-rw-r--r--jjb/global-macros.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml
index 2d2d6c3e6..46c4d827f 100644
--- a/jjb/global-macros.yaml
+++ b/jjb/global-macros.yaml
@@ -20,6 +20,15 @@
- file-id: '{settings-file}'
variable: 'SETTINGS_FILE'
+# call maven-target builder with a goal of --version to force Jenkins to
+# install the needed maven version
+- builder:
+ name: maven-install
+ builders:
+ - maven-target:
+ maven-version: '{maven-version}'
+ goals: '--version'
+
- builder:
name: maven-docker-push-release
builders: