From 2e1e117f96674b6bdbcf51cc62ef5345c6a1509d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 27 Jun 2020 14:57:18 +0200 Subject: Jenkins: lib: T2625: support PullRequest builds --- vars/isCustomBuild.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vars/isCustomBuild.groovy') 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() } -- cgit v1.2.3