ABS: Add submitter on build description devel-190131
authorhyokeun <hyokeun.jeon@samsung.com>
Mon, 2 Jul 2018 03:48:05 +0000 (12:48 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Mon, 2 Jul 2018 03:48:05 +0000 (12:48 +0900)
Change-Id: I696f4fe5fc50673f558a60a16d82e6186e25c288

jobs/abs-build-check/config.xml

index 2a2c9ff..020f9c8 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version='1.1' encoding='UTF-8'?>
+<?xml version='1.0' encoding='UTF-8'?>
 <project>
   <actions/>
   <description></description>
@@ -10,7 +10,7 @@
       <scanQueueFor>DISABLED</scanQueueFor>
       <blockingJobs></blockingJobs>
     </hudson.plugins.buildblocker.BuildBlockerProperty>
-    <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.28">
+    <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.25">
       <autoRebuild>false</autoRebuild>
       <rebuildDisabled>false</rebuildDisabled>
     </com.sonyericsson.rebuild.RebuildSettings>
           <name>TRIGGER_INFO</name>
           <description></description>
           <defaultValue></defaultValue>
-          <trim>false</trim>
         </hudson.model.StringParameterDefinition>
         <hudson.model.StringParameterDefinition>
           <name>EXCLUDE_ARCH</name>
           <description>aarch64,x86_64</description>
           <defaultValue></defaultValue>
-          <trim>false</trim>
         </hudson.model.StringParameterDefinition>
         <hudson.model.StringParameterDefinition>
           <name>BUILD_MODE</name>
@@ -42,7 +40,6 @@
 Debug : Debug build. Stripped one will be installed. Non-stripped one will be saved into git for debugging.
 Release : Release build</description>
           <defaultValue>Debug</defaultValue>
-          <trim>false</trim>
         </hudson.model.StringParameterDefinition>
       </parameterDefinitions>
     </hudson.model.ParametersDefinitionProperty>
@@ -50,7 +47,7 @@ Release : Release build</description>
   <scm class="hudson.scm.NullSCM"/>
   <assignedNode>abs-s008</assignedNode>
   <canRoam>false</canRoam>
-  <disabled>true</disabled>
+  <disabled>false</disabled>
   <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
   <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
   <triggers/>
@@ -62,9 +59,40 @@ Release : Release build</description>
 python ${WORKSPACE}/jenkins-scripts/abs/job_abs_build.py</command>
     </hudson.tasks.Shell>
   </builders>
-  <publishers/>
+  <publishers>
+    <org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder plugin="groovy-postbuild@2.3.1">
+      <script plugin="script-security@1.24">
+        <script>def matcher = manager.getLogMatcher(&apos;^submitter : (.*)&apos;)
+
+if(matcher?.matches()) {
+    manager.addShortText(&apos;Submitter: &apos; + matcher.group(1))
+}
+</script>
+        <sandbox>false</sandbox>
+      </script>
+      <behavior>0</behavior>
+      <runForMatrixParent>false</runForMatrixParent>
+    </org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
+    <hudson.plugins.parameterizedtrigger.BuildTrigger plugin="parameterized-trigger@2.32">
+      <configs>
+        <hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
+          <configs>
+            <hudson.plugins.parameterizedtrigger.FileBuildParameters>
+              <propertiesFile>UPDATE_ABS_STATUS.env</propertiesFile>
+              <failTriggerOnMissing>true</failTriggerOnMissing>
+              <useMatrixChild>false</useMatrixChild>
+              <onlyExactRuns>false</onlyExactRuns>
+            </hudson.plugins.parameterizedtrigger.FileBuildParameters>
+          </configs>
+          <projects>update_abs_status_remote</projects>
+          <condition>ALWAYS</condition>
+          <triggerWithNoParameters>false</triggerWithNoParameters>
+        </hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
+      </configs>
+    </hudson.plugins.parameterizedtrigger.BuildTrigger>
+  </publishers>
   <buildWrappers>
-    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.34">
+    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.30">
       <deleteDirs>false</deleteDirs>
       <cleanupParameter></cleanupParameter>
       <externalDelete></externalDelete>
@@ -77,15 +105,11 @@ python ${WORKSPACE}/jenkins-scripts/abs/job_abs_build.py</command>
       <hudsonHomeRelative>false</hudsonHomeRelative>
       <relativeTo>userContent</relativeTo>
     </com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper>
-    <EnvInjectBuildWrapper plugin="envinject@2.1.5">
+    <EnvInjectBuildWrapper plugin="envinject@1.93.1">
       <info>
         <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
-        <secureGroovyScript plugin="script-security@1.43">
-          <script></script>
-          <sandbox>false</sandbox>
-        </secureGroovyScript>
         <loadFilesFromMaster>false</loadFilesFromMaster>
       </info>
     </EnvInjectBuildWrapper>
   </buildWrappers>
-</project>
\ No newline at end of file
+</project>