condition-kind: boolean-expression
condition-expression: '{mvn-central}'
steps:
+ - lf-provide-maven-settings:
+ global-settings-file: '{mvn-global-settings}'
+ settings-file: '{mvn-settings}'
- lf-infra-create-netrc:
server-id: 'ossrh'
- inject:
properties-content: 'OSSRH_PROFILE_ID={ossrh-profile-id}'
- shell: !include-raw-escape: ../shell/maven-central.sh
+ - lf-provide-maven-settings-cleanup
- builder:
name: lf-maven-install
- builder:
name: lf-maven-stage
builders:
+ - lf-provide-maven-settings:
+ global-settings-file: '{mvn-global-settings}'
+ settings-file: '{mvn-settings}'
+ - lf-infra-create-netrc:
+ server-id: '{mvn-staging-id}'
# include-raw-escape fails due to JJB bug
- - shell: !include-raw:
+ - shell: !include-raw-escape:
- ../shell/common-variables.sh
- ../shell/maven-stage.sh
+ - lf-provide-maven-settings-cleanup
- builder:
name: lf-update-java-alternatives
- lf-provide-maven-settings:
global-settings-file: '{mvn-global-settings}'
settings-file: '{mvn-settings}'
- - lf-infra-create-netrc:
- server-id: '{mvn-staging-id}'
- shell: !include-raw-escape: ../shell/maven-patch-release.sh
- lf-maven-build:
mvn-goals: '{mvn-goals}'
- lf-sigul-sign-dir:
sign-artifacts: '{sign-artifacts}'
sign-dir: '$WORKSPACE/m2repo'
- - lf-maven-stage
+ - lf-maven-stage:
+ mvn-global-settings: '{mvn-global-settings}'
+ mvn-settings: '{mvn-settings}'
+ mvn-staging-id: '{mvn-staging-id}'
- lf-maven-central:
mvn-central: '{mvn-central}'
+ mvn-global-settings: '{mvn-global-settings}'
+ mvn-settings: '{mvn-settings}'
ossrh-profile-id: '{ossrh-profile-id}'
- lf-provide-maven-settings-cleanup
--- /dev/null
+---
+upgrade:
+ - |
+ Jobs using the **lf-maven-stage** macro now need to update to the new
+ usage. Preparation calls to **lf-provide-maven-settings**,
+ **lf-infra-create-netrc**, and **lf-provide-maven-settings-cleanup** are no
+ longer necessary to prepare the **lf-maven-stage** macro.
+
+ Usage:
+
+ .. code-block:: yaml
+
+ - lf-maven-stage:
+ mvn-global-settings: 'global-settings'
+ mvn-settings: 'settings'
+ mvn-staging-id: 'staging profile id'