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:32 +0200 |
commit | 22e9bed6eca07c198b8c1308eac10e05dfbc8704 (patch) | |
tree | 74a67b75fadbaeccae33142efec23e822524a411 | |
parent | f1f0c7e7bd94676c95f79f6b76564e94dc8c5f12 (diff) | |
download | vyos-build-22e9bed6eca07c198b8c1308eac10e05dfbc8704.tar.gz vyos-build-22e9bed6eca07c198b8c1308eac10e05dfbc8704.zip |
build-script: added option to force reprepro upload with custom build
-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() } |