+#################
+# Maven Release #
+#################
+
+- lf_maven_release: &lf_maven_release
+ name: lf-maven-release
+
+ # Produces a release candidate by creating a staging repo in Nexus.
+ #
+ # Runs a Maven build and deploys to $WORKSPACE/m2repo directory. This
+ # directory can then be reused later to deploy to Nexus.
+ #
+ # Required parameters:
+ # build-node: The node to run build on.
+ # jenkins-ssh-credential: Credential to use for SSH. (Generally should
+ # be configured in defaults.yaml)
+ # mvn-settings: The name of settings file containing credentials for
+ # the project.
+ # staging-profile-id: Profile ID of the project's Nexus staging profile.
+ #
+ # Optional parameters:
+ # mvn-global-settings: The name of the Maven global settings to use for
+ # Maven configuration. (default: global-settings)
+
+ ######################
+ # Default parameters #
+ ######################
+
+ branch: master
+ build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
+ build-timeout: 30
+ git-url: '$GIT_URL/$PROJECT'
+ java-version: openjdk8
+ mvn-global-settings: global-settings
+ mvn-opts: ''
+ mvn-params: ''
+ mvn-version: mvn33
+ stream: master
+ submodule-recursive: true
+
+ #####################
+ # Job Configuration #
+ #####################
+
+ builders:
+ - lf-jacoco-nojava-workaround
+ - lf-maven-install:
+ mvn-version: '{mvn-version}'
+ - lf-provide-maven-settings:
+ global-settings-file: '{mvn-global-settings}'
+ settings-file: '{mvn-settings}'
+ - lf-infra-create-netrc:
+ server-id: opendaylight-staging
+ - shell: !include-raw-escape:
+ - ../shell/lftools-install.sh
+ - ../shell/common-variables.sh
+ - ../shell/maven-patch-release.sh
+ - ../shell/maven-build.sh
+ - ../shell/maven-stage.sh
+ - lf-provide-maven-settings-cleanup
+