From 3e6ea625478b4355b09447b336a15387e2af674e Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Sun, 11 Jan 2015 02:44:56 +0200 Subject: [PATCH] Add label to re builds Output of job_re is parsed by post-build groovy script for lines 'Submission XXX has been YYYY' and label is created out of matched parts. Examples of label: rejected submit/tizen/20150109.061022 rebuilt submit/tizen_ivi/20150110.061123, etc Change-Id: I5a23d1240072793977ca8dc535bb77f0464cf504 Signed-off-by: Ed Bartosh --- jobs/re/config.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/jobs/re/config.xml b/jobs/re/config.xml index 88e502e..f5e3906 100644 --- a/jobs/re/config.xml +++ b/jobs/re/config.xml @@ -73,7 +73,19 @@ python ${WORKSPACE}/jenkins-scripts/job_re.py - + + + def matcher = manager.getLogMatcher("Submission (.*) has been (.*)\$") + +if(matcher?.matches()) { + manager.addShortText(matcher.group(2) + ' ' + matcher.group(1)) +}else{ + manager.addShortText("??") + //manager.build.delete() +} + 0 + + false -- 2.7.4