Added new job accept-or-reject-submission
authorEd Bartosh <eduard.bartosh@intel.com>
Sat, 13 Sep 2014 11:27:47 +0000 (14:27 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Sat, 13 Sep 2014 11:31:48 +0000 (14:31 +0300)
This job will be run by RE. It doesn't require RE to be maintainer
of the target project as it uses maintainer account for its operations.

Fixes: #1886

Change-Id: Ia7c4555ccf9b11ee425b5d576eca276e26399b5d
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
jobs/accept-or-reject-submission/config.xml [new file with mode: 0644]
packaging/jenkins-jobs.spec

diff --git a/jobs/accept-or-reject-submission/config.xml b/jobs/accept-or-reject-submission/config.xml
new file mode 100644 (file)
index 0000000..ec0694f
--- /dev/null
@@ -0,0 +1,87 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+  <actions/>
+  <description>Accept or reject submission</description>
+  <logRotator class="hudson.tasks.LogRotator">
+    <daysToKeep>50</daysToKeep>
+    <numToKeep>100</numToKeep>
+    <artifactDaysToKeep>-1</artifactDaysToKeep>
+    <artifactNumToKeep>-1</artifactNumToKeep>
+  </logRotator>
+  <keepDependencies>false</keepDependencies>
+  <properties>
+    <hudson.security.AuthorizationMatrixProperty/>
+    <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@1.3">
+      <priority>100</priority>
+    </hudson.queueSorter.PrioritySorterJobProperty>
+    <hudson.model.ParametersDefinitionProperty>
+      <parameterDefinitions>
+        <hudson.model.ChoiceParameterDefinition>
+          <name>action</name>
+          <description>Choose what to do</description>
+          <choices class="java.util.Arrays$ArrayList">
+            <a class="string-array">
+              <string>accept</string>
+              <string>reject</string>
+            </a>
+          </choices>
+        </hudson.model.ChoiceParameterDefinition>
+        <hudson.model.StringParameterDefinition>
+          <name>submission</name>
+          <description>Enter submission, for example: submit/tizen_ivi/20140912.678321</description>
+          <defaultValue></defaultValue>
+        </hudson.model.StringParameterDefinition>
+        <hudson.model.ChoiceParameterDefinition>
+          <name>target_project</name>
+          <description>Choose target project</description>
+          <choices class="java.util.Arrays$ArrayList">
+            <a class="string-array">
+              <string>Tizen:Common</string>
+              <string>Tizen:IVI</string>
+              <string>Tizen:Mobile</string>
+            </a>
+          </choices>
+        </hudson.model.ChoiceParameterDefinition>
+        <hudson.model.TextParameterDefinition>
+          <name>comment</name>
+          <description></description>
+          <defaultValue></defaultValue>
+        </hudson.model.TextParameterDefinition>
+      </parameterDefinitions>
+    </hudson.model.ParametersDefinitionProperty>
+  </properties>
+  <scm class="hudson.scm.NullSCM"/>
+  <assignedNode>master</assignedNode>
+  <canRoam>false</canRoam>
+  <disabled>false</disabled>
+  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+  <triggers class="vector"/>
+  <concurrentBuild>false</concurrentBuild>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>python ${WORKSPACE}/jenkins-scripts/job_accept_or_reject.py</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers/>
+  <buildWrappers>
+    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.16">
+      <deleteDirs>false</deleteDirs>
+      <cleanupParameter></cleanupParameter>
+    </hudson.plugins.ws__cleanup.PreBuildCleanup>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4">
+      <includes>configuration, jenkins-scripts/job_accept_or_reject.py, jenkins-scripts/common/*</includes>
+      <excludes></excludes>
+      <flatten>false</flatten>
+      <includeAntExcludes>false</includeAntExcludes>
+      <hudsonHomeRelative>false</hudsonHomeRelative>
+      <relativeTo>userContent</relativeTo>
+    </com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper>
+    <EnvInjectBuildWrapper plugin="envinject@1.88">
+      <info>
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
+        <loadFilesFromMaster>false</loadFilesFromMaster>
+      </info>
+    </EnvInjectBuildWrapper>
+  </buildWrappers>
+</project>
\ No newline at end of file
index 978e64e..9b1f10d 100644 (file)
@@ -92,6 +92,8 @@ fi
 %{destdir}/test-results-publisher/config.xml
 %dir %{destdir}/monitor_scm_meta_git/
 %{destdir}/monitor_scm_meta_git/config.xml
+%dir %{destdir}/accept-or-reject-submission/
+%{destdir}/accept-or-reject-submission/config.xml
 
 %files common
 %defattr(-,jenkins,jenkins)