mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-14 02:02:46 +00:00
[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:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user