diff options
author | dd <dd@wx.tnyzeq.icu> | 2024-05-20 17:51:46 +0200 |
---|---|---|
committer | dd <dd@wx.tnyzeq.icu> | 2024-05-20 17:52:46 +0200 |
commit | f38ad221b9a1ca7edcbc7f908911509717e7171a (patch) | |
tree | 752e1a6cf7927ee48de935c0a94b771ec30b709a /vars | |
parent | 218968a56c1ab0834630f620ad7dabdb7a688b4a (diff) | |
download | vyos-build-f38ad221b9a1ca7edcbc7f908911509717e7171a.tar.gz vyos-build-f38ad221b9a1ca7edcbc7f908911509717e7171a.zip |
build-script: added option to force reprepro upload with custom build
Diffstat (limited to 'vars')
-rw-r--r-- | vars/isCustomBuild.groovy | 4 |
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() } |