[CK] fix path for build filter (#4375)

## Motivation

Fix the filter that determines whether CI builds are necessary.

## Technical Details

A script checks the files list returned by git diff and checks whether
any code source was modified. If not, if only documentation was changed,
it will allow skipping the builds. We make sure we only look at the
changes in projects/composablekernel/ folder.
This commit is contained in:
Illia Silin
2026-02-06 10:17:02 -08:00
committed by GitHub
parent 8d236a8ff7
commit 8cd3f55a72

4
Jenkinsfile vendored
View File

@@ -272,10 +272,10 @@ def shouldRunCICheck() {
script: '''
if [ "$CHANGE_ID" != "" ]; then
# For PR builds, compare against target branch
git diff --name-only origin/$CHANGE_TARGET...HEAD
git diff --name-only origin/$CHANGE_TARGET...HEAD --projects/composablekernel/
else
# For regular builds, compare against previous commit
git diff --name-only HEAD~1..HEAD
git diff --name-only HEAD~1..HEAD --projects/composablekernel/
fi
'''
).trim().split('\n')