can be e.g. vyos-1x.git
- // GitHub organisation base URL
- def gitURI = 'git@github.com:vyos/' + getGitRepoName()
- def httpURI = 'https://github.com/vyos/' + getGitRepoName()
-
- return !((getGitRepoURL() == gitURI) || (getGitRepoURL() == httpURI)) || isPullRequest()
-}
diff --git a/vars/isPullRequest.groovy b/vars/isPullRequest.groovy
deleted file mode 100644
index 813341bc..00000000
--- a/vars/isPullRequest.groovy
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (C) 2020 VyOS maintainers and contributors
-//
-// This program is free software; you can redistribute it and/or modify
-// in order to easy exprort images built to "external" world
-// it under the terms of the GNU General Public License version 2 or later as
-// published by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
-
-def call() {
- if (env.CHANGE_ID) {
- return true
- }
- return false
-}
diff --git a/vars/setDescription.groovy b/vars/setDescription.groovy
deleted file mode 100644
index 683dc20c..00000000
--- a/vars/setDescription.groovy
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env groovy
-// Copyright (C) 2020 VyOS maintainers and contributors
-//
-// This program is free software; you can redistribute it and/or modify
-// in order to easy exprort images built to "external" world
-// it under the terms of the GNU General Public License version 2 or later as
-// published by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
-
-def call(text = null) {
- def item = Jenkins.instance.getItemByFullName(env.JOB_NAME)
-
- // build up the main description text
- def description = ""
- if (text) {
- description += "VyOS package build: " + text + "
"
- } else {
- description += "VyOS package build: " + getGitRepoName().replace('.git', '') + "
"
- }
-
- if (isCustomBuild()) {
- description += ""
- description += "Build not started from official Git repository!
"
- description += "
"
- description += "Repository: " + getGitRepoURL() + "
"
- description += "Branch: " + getGitBranchName() + "
"
- description += "
"
- } else {
- description += "Sources taken from Git branch: " + getGitBranchName() + "
"
- }
-
- item.setDescription(description)
- item.save()
-}
-