+- builder:
+ name: lf-infra-sysstat
+ builders:
+ - shell: !include-raw:
+ - ../shell/sysstat.sh
+
+- builder:
+ name: lf-jacoco-nojava-workaround
+ builders:
+ - shell: 'mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes'
+
+- builder:
+ name: lf-maven-install
+ # call maven-target builder with a goal of --version to force Jenkins to
+ # install the needed maven version
+ builders:
+ # Create a $HOME/.wgetrc to make the Maven download quiet.
+ - shell: 'echo "quiet=on" > "$HOME/.wgetrc"'
+ - maven-target:
+ maven-version: '{mvn-version}'
+ goals: '--version'
+ - shell: 'rm "$HOME/.wgetrc"'
+
+- builder:
+ name: lf-provide-maven-settings
+ # Push a global settings and user settings maven files
+ builders:
+ - config-file-provider:
+ files:
+ - file-id: '{global-settings-file}'
+ variable: 'GLOBAL_SETTINGS_FILE'
+ - file-id: '{settings-file}'
+ variable: 'SETTINGS_FILE'
+- builder:
+ name: lf-provide-maven-settings-cleanup
+ # Clear maven settings files after we are done using them
+ builders:
+ - shell: |
+ #!/bin/bash
+ set +e # DO NOT cause build failure if any of the rm calls fail.
+
+ rm "$GLOBAL_SETTINGS_FILE" "$SETTINGS_FILE"
+
+ # In some cases we use the lf-provide-maven-settings macro to produce
+ # a "$HOME/.netrc" file containing credentials. Remove that file here
+ # too if it exists.
+ rm "$HOME/.netrc"
+
+ # DO NOT fail build if any of the above lines fail.
+ exit 0
+
+##############
+# PARAMETERS #
+##############
+