Use lf-maven-install macro to install mvn 92/78192/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 27 Nov 2018 08:11:32 +0000 (16:11 +0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 27 Nov 2018 17:51:59 +0000 (01:51 +0800)
Let's use the global-jjb macro so we get the benefits of global-jjb.

Change-Id: I6da43d3d1fd1407d3c3d0142b25be47af0fb216f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/autorelease/autorelease-templates.yaml

index 08688d8128ea52a1796954b5c9098b1a2feaefeb..cb9ae1b1cde530669bc4ac667c29c21133f0f382 100644 (file)
     builders:
       - lf-infra-pre-build
       # force jenkins install of maven version before any shell scripts use it
-      - maven-target:
-          maven-version: mvn35
-          goals: '-version'
-          settings: '{mvn-settings}'
-          settings-type: cfp
-          global-settings: '{mvn-global-settings}'
-          global-settings-type: cfp
+      - lf-maven-install:
+          mvn-version: mvn35
       - lf-provide-maven-settings:
           global-settings-file: '{mvn-global-settings}'
           settings-file: '{mvn-settings}'