# to the following (fairly standard) topics and require them to be Mixed Case
[contrib-title-conventional-commits]
types=Fix,Feat,Chore,Docs,Style,Refactor,Perf,Test,Revert,CI,Build
+
+# Require RELENG issues in commit messages
+[body-match-regex]
+regex=(.*)Issue:\s+(?<!IT)RELENG-\d+(.*)
# or
# lf-activate-venv lftools
# or
-# lf-activate-venv --python 3.6 git-review
+# lf-activate-venv --python python3.8 git-review
#
# DESCRIPTION
# This function will create a new Python Virtual Environment (venv) and
submodule-disable: false
packer-builder: openstack
packer-cloud-settings: packer-cloud-env
- packer-version: 1.6.6
+ packer-version: 1.8.2
#####################
# Job Configuration #
--- /dev/null
+---
+fixes:
+ - |
+ Fix lf-activate-env code comment. The comment suggests using
+ just the version number ``--python <x.y>``, however as per the
+ code the correct format as per the code is ``--python python<x.y>``
--- /dev/null
+---
+issues:
+ - |
+ Addresses problems found while troubleshooting IT-24352
+fixes:
+ - |
+ Added support for debian in update-java-alternatives.sh (addresses potential Ubuntu detection bug)
+ Safer handling of unset/null SONARCLOUD_JAVA_VERSION variable preventing java runtime issues
--- /dev/null
+---
+upgrade:
+ - |
+ Upgrade Packer version to v1.8.2. The version is more recent v1.8.2
+ and has security updates.
+
+ Ref: https://github.com/hashicorp/packer/releases/tag/v1.8.2
# shellcheck disable=SC1090
source ~/lf-env.sh
-lf-activate-venv --python 3.8 lftools
+lf-activate-venv --python python3.8 lftools
# Ensure we fail the job if any steps fail
# Disable 'globbing'
fi
fi
-if [ "$SET_JDK_VERSION" != "$SONARCLOUD_JAVA_VERSION" ]; then
+if [ -n "$SONARCLOUD_JAVA_VERSION" ] && [ "$SET_JDK_VERSION" != "$SONARCLOUD_JAVA_VERSION" ]; then
export SET_JDK_VERSION="$SONARCLOUD_JAVA_VERSION"
bash <(curl -s https://raw.githubusercontent.com/lfit/releng-global-jjb/master/shell/update-java-alternatives.sh)
source /tmp/java.env
echo "---> RedHat type system detected"
update-java-redhat
;;
- ubuntu)
- echo "---> Ubuntu system detected"
+ ubuntu|debian)
+ echo "---> Ubuntu/Debian system detected"
update-java-ubuntu
;;
esac