mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
build: Skip Jenkins build on .github only changes
Fixes: #4988 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
0031dacd7b
commit
85f818421f
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -438,5 +438,12 @@ def boolean skipWorkerBuild() {
|
||||
return true
|
||||
}
|
||||
|
||||
if (sh(
|
||||
returnStatus: true,
|
||||
script: "git diff --name-only origin/${env.CHANGE_TARGET}... | grep -v -E '.github/'"
|
||||
) != 0) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user