Whamcloud - gitweb
LU-17064 build: check for Build-Parameters in commit 48/52448/19
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 20 Sep 2023 23:39:09 +0000 (17:39 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:09:48 +0000 (06:09 +0000)
commit2754dc6be5f9a0e339f4dd42fe1d16f6f9e4a203
treea35fe6b75b963ae41484548bf0339ec8f8b49cc2
parentdacc4b6d384cbe6376a4cf106cc63ad1ac0cd23d
LU-17064 build: check for Build-Parameters in commit

Check if the commit message contains any "Build-Parameters:" lines
embedded in the commit message, like "clientdistro=el9.2" to limit
builds to only the specified distros/arches.  Expect one directive
(for either client or server build) at a time.  The arch is optional,
in which case all architectures are built.

Also accept the "ignore" keyword in the Build-Parameters: line as
well as Test-Parameters: lines, since it is really a build directive.

Build-Parameters: clientdistro=el9.3 clientarch=aarch64
Build-Parameters: distro=el9.3 arch=x86_64
Build-Parameters: distro=el8.9 arch=x86_64
Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I6fe1c59748e287b671a21cc3f3fdb0c4473ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52448
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Patrick Farrell <patrick.farrell@oracle.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/git-hooks/commit-msg
contrib/lbuild/lbuild