summaryrefslogtreecommitdiff
path: root/vars/isCustomBuild.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'vars/isCustomBuild.groovy')
-rw-r--r--vars/isCustomBuild.groovy4
1 files changed, 4 insertions, 0 deletions
diff --git a/vars/isCustomBuild.groovy b/vars/isCustomBuild.groovy
index c5e5fab7..b1e6fe76 100644
--- a/vars/isCustomBuild.groovy
+++ b/vars/isCustomBuild.groovy
@@ -22,5 +22,9 @@ def call() {
def gitURI = 'git@github.com:vyos/' + getGitRepoName()
def httpURI = 'https://github.com/vyos/' + getGitRepoName()
+ if (env.CUSTOM_BUILD_CHECK_DISABLED) {
+ return false
+ }
+
return !((getGitRepoURL() == gitURI) || (getGitRepoURL() == httpURI)) || isPullRequest()
}