summaryrefslogtreecommitdiff
path: root/vars/setDescription.groovy
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-20 17:30:12 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-20 23:11:56 +0200
commitb213775285018e0610bc307abc08bd5db956a8c9 (patch)
tree7b19a345f1813065307ea0e9e7f3249734987b78 /vars/setDescription.groovy
parent7ab2724c338f1372d0ef65f0ac3600282d13ace0 (diff)
downloadvyos-build-b213775285018e0610bc307abc08bd5db956a8c9.tar.gz
vyos-build-b213775285018e0610bc307abc08bd5db956a8c9.zip
Jenkins: lib: add programmable package build Pipeline
Diffstat (limited to 'vars/setDescription.groovy')
-rw-r--r--vars/setDescription.groovy8
1 files changed, 6 insertions, 2 deletions
diff --git a/vars/setDescription.groovy b/vars/setDescription.groovy
index a503bc28..683dc20c 100644
--- a/vars/setDescription.groovy
+++ b/vars/setDescription.groovy
@@ -14,12 +14,16 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-def call() {
+def call(text = null) {
def item = Jenkins.instance.getItemByFullName(env.JOB_NAME)
// build up the main description text
def description = ""
- description += "<h2>VyOS individual package build: " + getGitRepoName().replace('.git', '') + "</h2>"
+ if (text) {
+ description += "<h2>VyOS package build: " + text + "</h2>"
+ } else {
+ description += "<h2>VyOS package build: " + getGitRepoName().replace('.git', '') + "</h2>"
+ }
if (isCustomBuild()) {
description += "<p style='border: 3px dashed red; width: 50%;'>"