diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-22 20:08:29 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-22 20:08:29 +0200 |
commit | 4a9c8a32ddc1ff3248ae0d1d99589850d0353fdd (patch) | |
tree | fde6cfd982b76e9cc74e92ae2977acb9b219af64 /Jenkinsfile | |
parent | 274af63ff9aac03dd2de2bdb6c5c44fdb18cc1bd (diff) | |
download | vyos-1x-4a9c8a32ddc1ff3248ae0d1d99589850d0353fdd.tar.gz vyos-1x-4a9c8a32ddc1ff3248ae0d1d99589850d0353fdd.zip |
Jenkins: fix isCustomBuild() URL
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 6e3ab11e1..63e001804 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,10 +29,10 @@ def getGitRepoURL() { // env.JOB_NAME is e.g. vyos-build or vyos-1x and so on .... def isCustomBuild() { // GitHub organisation base URL - def gitURI = 'git@github.com:vyos/' + env.JOB_NAME - def httpURI = 'https://github.com/vyos/' + env.JOB_NAME + def repoPath = 'vyos/' + env.JOB_NAME + '.git' + def gitURI = 'git@github.com:' + repoPath + def httpURI = 'https://github.com/' + repoPath - echo getGitRepoURL() return ! ((getGitRepoURL() == gitURI) || (getGitRepoURL() == httpURI)) } |