:Required Parameters:
:sign-artifacts: Whether or not to sign artifacts with Sigul.
:sign-dir: Directory to sign.
+ :sign-mode: serial|parallel
lf-infra-provide-docker-cleanup
-------------------------------
- shell: !include-raw-escape: ../shell/sigul-configuration.sh
- shell: !include-raw-escape: ../shell/sigul-install.sh
- inject:
- properties-content: SIGN_DIR={sign-dir}
+ properties-content: |
+ SIGN_DIR={sign-dir}
+ SIGN_MODE={sign-mode}
- shell: !include-raw-escape:
- - ../shell/common-variables.sh
- ../shell/sigul-sign-dir.sh
- shell: !include-raw-escape: ../shell/sigul-configuration-cleanup.sh
mvn-version: mvn35
ossrh-profile-id: ''
sign-artifacts: false
+ sign-mode: serial
stream: master
submodule-recursive: true
submodule-timeout: 10
- lf-sigul-sign-dir:
sign-artifacts: '{sign-artifacts}'
sign-dir: '$WORKSPACE/m2repo'
+ sign-mode: '{sign-mode}'
- lf-maven-stage:
mvn-global-settings: '{mvn-global-settings}'
mvn-settings: '{mvn-settings}'
--- /dev/null
+---
+features:
+ - |
+ **lf-sigul-sign-dir** macros now supports a ``sign-mode`` parameter which
+ allows jobs to choose to sign artifacts using either *parallel* mode
+ or *serial* mode (default).
+upgrade:
+ - |
+ **lf-sigul-sign-dir** users need to add a new parameter ``sign-mode`` to
+ their job-templates setting either *parallel* or *serial* as the value, we
+ recommend setting serial mode for this setting.
+
+ **{project-name}-maven-stage-{stream}**'s Sigul signer now defaults to
+ *serial* mode instead of the previous *parallel* behaviour. To change
+ this back to the previous behaviour pass the "sign-mode" parameter to the
+ job template:
+
+ .. code-block:: yaml
+
+ - project:
+ name: parallel-sign
+ jobs:
+ - gerrit-maven-stage:
+ sign-mode: parallel
# Ensure we fail the job if any steps fail.
set -e -o pipefail
-lftools_activate
-lftools sign sigul "${SIGN_DIR}"
+lftools sign sigul -m "${SIGN_MODE}" "${SIGN_DIR}"