summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordd <dd@wx.tnyzeq.icu>2024-05-20 17:51:46 +0200
committerdd <dd@wx.tnyzeq.icu>2024-05-20 17:52:46 +0200
commitf38ad221b9a1ca7edcbc7f908911509717e7171a (patch)
tree752e1a6cf7927ee48de935c0a94b771ec30b709a
parent218968a56c1ab0834630f620ad7dabdb7a688b4a (diff)
downloadvyos-build-f38ad221b9a1ca7edcbc7f908911509717e7171a.tar.gz
vyos-build-f38ad221b9a1ca7edcbc7f908911509717e7171a.zip
build-script: added option to force reprepro upload with custom build
-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()
}