summaryrefslogtreecommitdiff
path: root/vars/isCustomBuild.groovy
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-27 14:57:18 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-27 14:57:18 +0200
commit2e1e117f96674b6bdbcf51cc62ef5345c6a1509d (patch)
tree8893ceca844b07a0ce29abe26c2cd5dacc36f5b3 /vars/isCustomBuild.groovy
parente68de0e41fe7bfdee4fddf5f42e3404da09f2bf6 (diff)
downloadvyos-build-2e1e117f96674b6bdbcf51cc62ef5345c6a1509d.tar.gz
vyos-build-2e1e117f96674b6bdbcf51cc62ef5345c6a1509d.zip
Jenkins: lib: T2625: support PullRequest builds
Diffstat (limited to 'vars/isCustomBuild.groovy')
-rw-r--r--vars/isCustomBuild.groovy2
1 files changed, 1 insertions, 1 deletions
diff --git a/vars/isCustomBuild.groovy b/vars/isCustomBuild.groovy
index 301fdd42..c5e5fab7 100644
--- a/vars/isCustomBuild.groovy
+++ b/vars/isCustomBuild.groovy
@@ -22,5 +22,5 @@ def call() {
def gitURI = 'git@github.com:vyos/' + getGitRepoName()
def httpURI = 'https://github.com/vyos/' + getGitRepoName()
- return !((getGitRepoURL() == gitURI) || (getGitRepoURL() == httpURI)) || env.CHANGE_ID
+ return !((getGitRepoURL() == gitURI) || (getGitRepoURL() == httpURI)) || isPullRequest()
}