From f38ad221b9a1ca7edcbc7f908911509717e7171a Mon Sep 17 00:00:00 2001
From: dd
Date: Mon, 20 May 2024 17:51:46 +0200
Subject: build-script: added option to force reprepro upload with custom build
---
vars/isCustomBuild.groovy | 4 ++++
1 file changed, 4 insertions(+)
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()
}
--
cgit v1.2.3