Feat: Switch gerrit-gradle-build template to the gradle builder 93/71893/10
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Mon, 3 Jul 2023 12:21:38 +0000 (12:21 +0000)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Mon, 17 Jul 2023 06:38:31 +0000 (06:38 +0000)
Issue: RELENG-4763
Change-Id: Id31d9e23c8df1470c41eab58a91a005b5bd9a4db
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
docs/jjb/lf-gradle-jobs.rst
jjb/lf-gradle-jobs.yaml

index 354edb9..f4a1d5b 100644 (file)
@@ -21,6 +21,7 @@ Runs a gradle build command to perform the verification.
     :java-version: Version of Java to execute Maven build. (default: openjdk17)
     :jenkins-ssh-credential: Credential to use for SSH. (Generally configured in defaults.yaml)
     :mvn-settings: Maven settings.xml file containing credentials to use.
+    :wrapper: Use the gradle wrapper (default: false)
 
 :Optional parameters:
 
index 4db41f2..b7b9370 100644 (file)
@@ -21,6 +21,7 @@
     submodule-timeout: 10
     submodule-disable: false
     cron: "@daily"
+    wrapper: true
 
     archive-artifacts: >
       **/*.log
       - lf-infra-docker-login:
           global-settings-file: "global-settings"
           settings-file: "{mvn-settings}"
-      - shell: |
-          ./gradlew build
+      - gradle:
+          wrapper: "{wrapper}"
+          executable: true
+          tasks: |
+            build
 
     scm:
       - lf-infra-gerrit-scm: