mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 08:21:15 +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
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sh(
|
||||||
|
returnStatus: true,
|
||||||
|
script: "git diff --name-only origin/${env.CHANGE_TARGET}... | grep -v -E '.github/'"
|
||||||
|
) != 0) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user