+- 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 #
+##############
+
+- parameter:
+ name: lf-infra-maven-parameters
+ parameters:
+ - string:
+ name: MAVEN_OPTS
+ default: '{mvn-opts}'
+ description: |
+ Maven Java opts. Example: -Xmx1024m -XX:MaxPermSize=256m
+ - string:
+ name: MAVEN_PARAMS
+ default: '{mvn-params}'
+ description: |
+ Maven parameters to pass to the mvn command.
+ - string:
+ name: MVN
+ # Sets an env var for shell scripts to be able to call the dynamically
+ # installed maven without having to calculate the path themselves.
+ default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{mvn-version}/bin/mvn'
+ description: 'Maven selector to be used by shell scripts'
+ - string:
+ name: STAGING_PROFILE_ID
+ default: '{staging-profile-id}'
+ description: |
+ Nexus staging profile ID.
+
+
+- parameter:
+ name: lf-infra-openstack-parameters
+ parameters:
+ - string:
+ name: OS_CLOUD
+ default: '{os-cloud}'
+ description: |
+ The name of a cloud configuration in clouds.yaml. OS_CLOUD is a
+ variable name that is significant to openstack client as a
+ environment variable. Please refer to the documentation for
+ further details.
+ https://docs.openstack.org/developer/python-openstackclient/
+