60b7f3bb9a318eb3484308e6be1c4a8bd6dc02fc
[services/jenkins-jobs.git] / jobs / BUILD-MONITOR-TRBS-UPDATE-BUILD-LOG / config.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <project>
3   <actions/>
4   <description>This job handles the image infomation updates and image manifest creation etc.</description>
5   <keepDependencies>false</keepDependencies>
6   <properties>
7     <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.4.1">
8       <useBuildBlocker>false</useBuildBlocker>
9     </hudson.plugins.buildblocker.BuildBlockerProperty>
10     <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@2.8">
11       <priority>100</priority>
12     </hudson.queueSorter.PrioritySorterJobProperty>
13     <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.25">
14       <autoRebuild>false</autoRebuild>
15       <rebuildDisabled>false</rebuildDisabled>
16     </com.sonyericsson.rebuild.RebuildSettings>
17     <jenkins.model.BuildDiscarderProperty>
18       <strategy class="hudson.tasks.LogRotator">
19         <daysToKeep>7</daysToKeep>
20         <numToKeep>5000</numToKeep>
21         <artifactDaysToKeep>-1</artifactDaysToKeep>
22         <artifactNumToKeep>-1</artifactNumToKeep>
23       </strategy>
24     </jenkins.model.BuildDiscarderProperty>
25     <hudson.model.ParametersDefinitionProperty>
26       <parameterDefinitions>
27         <hudson.model.FileParameterDefinition>
28           <name>TRIGGER_INFO_FILE</name>
29           <description></description>
30         </hudson.model.FileParameterDefinition>
31       </parameterDefinitions>
32     </hudson.model.ParametersDefinitionProperty>
33   </properties>
34   <scm class="hudson.scm.NullSCM"/>
35   <assignedNode>master</assignedNode>
36   <canRoam>false</canRoam>
37   <disabled>false</disabled>
38   <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
39   <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
40   <triggers/>
41   <concurrentBuild>false</concurrentBuild>
42   <builders>
43     <hudson.tasks.Shell>
44       <command>#/bin/bash
45
46 export TRIGGER_INFO=`cat TRIGGER_INFO_FILE`
47
48 python jenkins-scripts/job_buildmonitor.py</command>
49     </hudson.tasks.Shell>
50   </builders>
51   <publishers>
52     <org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder plugin="groovy-postbuild@1.8">
53       <groovyScript>/* 
54 &lt;&lt; LOG:TRIGGER_INFO &gt;&gt;
55
56 &quot;bm_stage&quot; : &quot;Submit&quot;, 
57 &quot;git_tag&quot;      : &quot;submit/tizen_3.0/20161202.035416&quot;, 
58 &quot;project&quot;      : &quot;home:trbs: [Tizen:3.0:Mobile]  :ref: [20161130.2]  :[submit:tizen_3.0] : [20161201.124537] &quot;,
59 &quot;project&quot;      : &quot;home:prerelease: [Tizen:Mobile] :[submit:tizen]: [20161221.044125] &quot;,
60 &quot;name&quot;        : &quot;mobile-wayland-arm64-tm2&quot;, 
61 &quot;bm_repo&quot;    : &quot;arm-wayland&quot;
62 &quot;sourceproject&quot;: &quot;home:prerelease: [Tizen:Mobile]: [submit:tizen] : [20161221.044445] &quot;,  (SR accept)
63
64 &lt;&lt; Post_Snap &gt;&gt;
65 &quot;build_id&quot;         : &quot;tizen-mobile_20161227.9&quot;,
66 &quot;repo_data_build_id&quot;: &quot;tizen-mobile_20161227.9&quot;,
67 */
68
69 def bm_stage = manager.getLogMatcher(&apos;.*&quot;bm_stage&quot;: (.*).*&apos;)
70 def git_tag = manager.getLogMatcher(&apos;.*&quot;git_tag&quot;: (.*).*&apos;)
71 def bm_trbs_project = manager.getLogMatcher(&apos;.*&quot;project&quot;: &quot;home:trbs:(.*):ref:([0-9]+.[0-9]+):(.*):([0-9]+.[0-9]+)&quot;.*&apos;)
72 def bm_pre_project = manager.getLogMatcher(&apos;.*&quot;project&quot;: &quot;home:prerelease:(.*):submit:(.*):([0-9]+.[0-9]+)&quot;.*&apos;)
73 def bm_dev_name = manager.getLogMatcher(&apos;.*&quot;name&quot;: (.*).*&apos;)
74 def bm_repo = manager.getLogMatcher(&apos;.*&quot;bm_repo&quot;: (.*).*&apos;)
75 def bm_SR_src_project = manager.getLogMatcher(&apos;.*&quot;sourceproject&quot;: &quot;home:prerelease:(.*):submit:(.*):([0-9]+.[0-9]+)&quot;.*&apos;)
76 def bm_build_id = manager.getLogMatcher(&apos;.*&quot;build_id&quot;: (.*).*&apos;)
77 def bm_repo_data_build_id = manager.getLogMatcher(&apos;.*&quot;repo_data_build_id&quot;: (.*).*&apos;)
78
79 if(bm_stage?.matches()) {
80     manager.addShortText(&apos;\n[ &apos; + bm_stage.group(1) + &apos;  ]&apos;)
81     manager.addInfoBadge()
82     //manager.addBadge(&quot;star-gold.gif&quot;, &quot;info&quot;)
83 }
84 if(git_tag?.matches()) {
85     manager.addShortText(&apos;\n[ &apos; + git_tag.group(1) + &apos;  ]&apos;)
86 }
87 if(bm_trbs_project?.matches()) {
88     manager.addShortText(&apos;\n[ &apos; + bm_trbs_project.group(1) + &apos; ][ &apos; + bm_trbs_project.group(2) + &apos; ][ &apos; + bm_trbs_project.group(4) + &apos; ]&apos;)
89 }
90 if(bm_pre_project?.matches()) {
91     manager.addShortText(&apos;\n[ &apos; + bm_pre_project.group(1) + &apos; ][ &apos; + bm_pre_project.group(2) + &apos; ][ &apos; + bm_pre_project.group(3) + &apos; ]&apos;)
92 }
93 if(bm_dev_name?.matches()) {
94     manager.addShortText(&apos;\n[ &apos; + bm_dev_name.group(1) + &apos; ]&apos;)
95 }
96 if(bm_repo?.matches()) {
97     manager.addShortText(&apos;\n[ &apos; + bm_repo.group(1) + &apos; ]&apos;)
98 }
99 if(bm_SR_src_project?.matches()) {
100     manager.addShortText(&apos;\n[ &apos; + bm_SR_src_project.group(1) + &apos; ][ &apos; + bm_SR_src_project.group(2) + &apos; ][ &apos; + bm_SR_src_project.group(3) + &apos; ]&apos;)
101 }
102 if(bm_build_id?.matches()) {
103     manager.addShortText(&apos;\n[ &apos; + bm_build_id.group(1) + &apos;  ]&apos;)
104 }
105 if(bm_repo_data_build_id?.matches()) {
106     manager.addShortText(&apos;\n[ &apos; + bm_repo_data_build_id.group(1) + &apos;  ]&apos;)
107 }</groovyScript>
108       <behavior>0</behavior>
109     </org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
110   </publishers>
111   <buildWrappers>
112     <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.24">
113       <deleteDirs>false</deleteDirs>
114       <cleanupParameter></cleanupParameter>
115       <externalDelete></externalDelete>
116     </hudson.plugins.ws__cleanup.PreBuildCleanup>
117     <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.3">
118       <includes>configuration, jenkins-scripts/job_buildmonitor.py, jenkins-scripts/common/*, jenkins-scripts/repomaker/*, jenkins-scripts/images/*</includes>
119       <excludes></excludes>
120       <flatten>false</flatten>
121       <includeAntExcludes>false</includeAntExcludes>
122       <hudsonHomeRelative>false</hudsonHomeRelative>
123       <relativeTo>userContent</relativeTo>
124     </com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper>
125     <EnvInjectBuildWrapper plugin="envinject@1.90">
126       <info>
127         <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
128         <loadFilesFromMaster>false</loadFilesFromMaster>
129       </info>
130     </EnvInjectBuildWrapper>
131   </buildWrappers>
132 </project>