Add jenkins jobs for pmb 47/180247/6
authorjiankang.fan <jiankang.fan@samsung.com>
Fri, 25 May 2018 08:33:08 +0000 (16:33 +0800)
committermao xiaojuan <xiaojuan.mao@samsung.com>
Tue, 19 Jun 2018 03:32:26 +0000 (11:32 +0800)
Change-Id: I62b9756ce30f248800085fd3d6590041086b2b37
Signed-off-by: jiankang.fan <jiankang.fan@samsung.com>
debian/control
debian/jenkins-jobs-pmb.install [new file with mode: 0644]
jobs/Tool_Prereview_Test_Receiver/config.xml [new file with mode: 0755]
jobs/Tool_Prereview_Test_Sender/config.xml [new file with mode: 0644]
jobs/Tool_history_update/config.xml [new file with mode: 0644]
packaging/jenkins-jobs.spec

index 7006121..2f5f690 100644 (file)
@@ -48,3 +48,9 @@ Depends:  ${python:Depends},
  jenkins-jobs-common
 Description: Jenkins jobs for separate GBS system
 
+Package: jenkins-jobs-pmb
+Architecture: all
+Depends:  ${python:Depends},
+ jenkins-jobs-common
+Description: Jenkins jobs for separate pmb system
+
diff --git a/debian/jenkins-jobs-pmb.install b/debian/jenkins-jobs-pmb.install
new file mode 100644 (file)
index 0000000..d5006e4
--- /dev/null
@@ -0,0 +1,2 @@
+Tool_Prereview_Test_Receiver/ /var/lib/jenkins/jobs/
+Tool_Prereview_Test_Sender/ /var/lib/jenkins/jobs/
diff --git a/jobs/Tool_Prereview_Test_Receiver/config.xml b/jobs/Tool_Prereview_Test_Receiver/config.xml
new file mode 100755 (executable)
index 0000000..cb9294a
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+  <actions/>
+  <description></description>
+  <keepDependencies>false</keepDependencies>
+  <properties>
+    <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.7.3">
+      <useBuildBlocker>false</useBuildBlocker>
+      <blockLevel>GLOBAL</blockLevel>
+      <scanQueueFor>DISABLED</scanQueueFor>
+      <blockingJobs></blockingJobs>
+    </hudson.plugins.buildblocker.BuildBlockerProperty>
+    <jenkins.model.BuildDiscarderProperty>
+      <strategy class="hudson.tasks.LogRotator">
+        <daysToKeep>-1</daysToKeep>
+        <numToKeep>-1</numToKeep>
+        <artifactDaysToKeep>-1</artifactDaysToKeep>
+        <artifactNumToKeep>-1</artifactNumToKeep>
+      </strategy>
+    </jenkins.model.BuildDiscarderProperty>
+    <hudson.model.ParametersDefinitionProperty>
+      <parameterDefinitions>
+        <hudson.model.FileParameterDefinition>
+          <name>file0</name>
+          <description></description>
+        </hudson.model.FileParameterDefinition>
+        <hudson.model.StringParameterDefinition>
+          <name>BUILDMONITOR_IP</name>
+          <description></description>
+          <defaultValue>10.113.136.117</defaultValue>
+        </hudson.model.StringParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>BUILDMONITOR_USER</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQarTJHuiR3de/k9QppmByMiITh4TomAdtQ8bYEaJ8y8U=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>BUILDMONITOR_PASS</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQoSBGd6fpahpi16g6iZOBSA6JPRfEU8XQnie2Q6arNPg=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.StringParameterDefinition>
+          <name>BUILDMONITOR_NAME</name>
+          <description></description>
+          <defaultValue>tboard</defaultValue>
+        </hudson.model.StringParameterDefinition>
+      </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>
+  <authToken>123456</authToken>
+  <triggers/>
+  <concurrentBuild>false</concurrentBuild>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>python /var/lib/jenkins/jenkins-scripts/pmb/job_tool_jira_receiver.py</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers/>
+  <buildWrappers/>
+</project>
diff --git a/jobs/Tool_Prereview_Test_Sender/config.xml b/jobs/Tool_Prereview_Test_Sender/config.xml
new file mode 100644 (file)
index 0000000..7ca1da3
--- /dev/null
@@ -0,0 +1,85 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+  <actions/>
+  <description></description>
+  <keepDependencies>false</keepDependencies>
+  <properties>
+    <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.7.3">
+      <useBuildBlocker>false</useBuildBlocker>
+      <blockLevel>GLOBAL</blockLevel>
+      <scanQueueFor>DISABLED</scanQueueFor>
+      <blockingJobs></blockingJobs>
+    </hudson.plugins.buildblocker.BuildBlockerProperty>
+    <hudson.model.ParametersDefinitionProperty>
+      <parameterDefinitions>
+        <hudson.model.StringParameterDefinition>
+          <name>jobName</name>
+          <description></description>
+          <defaultValue></defaultValue>
+        </hudson.model.StringParameterDefinition>
+        <hudson.model.StringParameterDefinition>
+          <name>buildNumber</name>
+          <description></description>
+          <defaultValue></defaultValue>
+        </hudson.model.StringParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>SPIN_JIRA_USER</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQ0DNGpMw+h9ImCbqBLSNEXr0jRGsCoi3vgudMlkEit4U=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>SPIN_JIRA_PW</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQ0F2ppu/jFwNm/4FaNj3eaD+JILH+OQ3DiFfK6bQy2gw=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>PUBLIC_JIRA_USER</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQdjiLNBFKO9uyPMZzmmAN3Wc22j1gnMpqLjmgGeigG7w=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>PUBLIC_JIRA_PW</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQC9xvLIMKza3R0G37SIfsHI1Bt8AQ3KHcOwT2oHVoOTc=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>SPIN_JENKINS_USER</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQLcU1ZUULdpHDzAaT3BF4D77b6WHxR/+e7vU6nDPcix0=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>SPIN_JENKINS_PW</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQVqzqk9JK9LSx2+TpgkZYKjl+hQedu2kMkzSvmthIPqA=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>DATA_JENKINS_USER</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQrZnIN2soINY1Nc8UMGU7NGquYX8dzbTB7DfVBKG50Eg=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+        <hudson.model.PasswordParameterDefinition>
+          <name>DATA_JENKINS_PW</name>
+          <description></description>
+          <defaultValue>{AQAAABAAAAAQe04b9P//QhbRkf+DHVwcHTAWNzZx8wZKqajHdlspXsk=}</defaultValue>
+        </hudson.model.PasswordParameterDefinition>
+      </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>
+  <authToken>123456</authToken>
+  <triggers/>
+  <concurrentBuild>false</concurrentBuild>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>cd /var/lib/jenkins/jenkins-scripts/pmb/
+python job_tool_sender.py</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers/>
+  <buildWrappers/>
+</project>
diff --git a/jobs/Tool_history_update/config.xml b/jobs/Tool_history_update/config.xml
new file mode 100644 (file)
index 0000000..4f7319b
--- /dev/null
@@ -0,0 +1,115 @@
+<?xml version='1.1' encoding='UTF-8'?>
+<project>
+  <actions/>
+  <description></description>
+  <keepDependencies>false</keepDependencies>
+  <properties>
+    <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.7.3">
+      <useBuildBlocker>false</useBuildBlocker>
+      <blockLevel>GLOBAL</blockLevel>
+      <scanQueueFor>DISABLED</scanQueueFor>
+      <blockingJobs></blockingJobs>
+    </hudson.plugins.buildblocker.BuildBlockerProperty>
+    <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.28">
+      <autoRebuild>false</autoRebuild>
+      <rebuildDisabled>false</rebuildDisabled>
+    </com.sonyericsson.rebuild.RebuildSettings>
+    <jenkins.model.BuildDiscarderProperty>
+      <strategy class="hudson.tasks.LogRotator">
+        <daysToKeep>-1</daysToKeep>
+        <numToKeep>100</numToKeep>
+        <artifactDaysToKeep>-1</artifactDaysToKeep>
+        <artifactNumToKeep>-1</artifactNumToKeep>
+      </strategy>
+    </jenkins.model.BuildDiscarderProperty>
+    <hudson.model.ParametersDefinitionProperty>
+      <parameterDefinitions>
+        <hudson.model.ChoiceParameterDefinition>
+          <name>project</name>
+          <description></description>
+          <choices class="java.util.Arrays$ArrayList">
+            <a class="string-array">
+              <string>tools</string>
+              <string>services</string>
+            </a>
+          </choices>
+        </hudson.model.ChoiceParameterDefinition>
+        <hudson.model.StringParameterDefinition>
+          <name>release_id</name>
+          <description></description>
+          <defaultValue></defaultValue>
+          <trim>false</trim>
+        </hudson.model.StringParameterDefinition>
+        <hudson.model.ChoiceParameterDefinition>
+          <name>destination</name>
+          <description></description>
+          <choices class="java.util.Arrays$ArrayList">
+            <a class="string-array">
+              <string>staging</string>
+              <string>download.tizen.org</string>
+            </a>
+          </choices>
+        </hudson.model.ChoiceParameterDefinition>
+        <hudson.model.ChoiceParameterDefinition>
+          <name>update_latest_release</name>
+          <description></description>
+          <choices class="java.util.Arrays$ArrayList">
+            <a class="string-array">
+              <string>NO</string>
+              <string>YES</string>
+            </a>
+          </choices>
+        </hudson.model.ChoiceParameterDefinition>
+      </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/>
+  <concurrentBuild>false</concurrentBuild>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>#!/bin/bash
+
+PUBLIC_apiurl=&apos;https://api.tizen.org&apos;
+SPIN_apiurl=&apos;http://10.113.136.53:81&apos;
+
+sudo mkdir $WORKSPACE/result
+
+echo &quot;&quot;
+echo &quot;++++++++++++++++++++++++++++++++++++++++++&quot;
+echo &quot;** project  : &quot;$project
+echo &quot;** release_id       : &quot;$release_id
+echo &quot;** destination      : &quot;$destination
+echo &quot;** update_latest_release    : &quot;$update_latest_release
+echo &quot;++++++++++++++++++++++++++++++++++++++++++&quot;
+echo &quot;&quot;
+
+
+#!/bin/sh
+
+export 
+python ${WORKSPACE}/jenkins-scripts/pmb/job_tool_history_update.py $project $release_id $destination $update_latest_release</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers/>
+  <buildWrappers>
+    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.34">
+      <deleteDirs>false</deleteDirs>
+      <cleanupParameter></cleanupParameter>
+      <externalDelete></externalDelete>
+    </hudson.plugins.ws__cleanup.PreBuildCleanup>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration, jenkins-scripts/common/*, jenkins-scripts/pmb/job_tool_history_update.py</includes>
+      <excludes></excludes>
+      <flatten>false</flatten>
+      <includeAntExcludes>false</includeAntExcludes>
+      <hudsonHomeRelative>false</hudsonHomeRelative>
+      <relativeTo>userContent</relativeTo>
+    </com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper>
+  </buildWrappers>
+</project>
index 3dca065..3de640a 100644 (file)
@@ -59,6 +59,14 @@ Requires:   %{name}-common = %{version}-%{release}
 %description gbs
 Jenkins jobs for separate GBS system
 
+%package pmb
+Summary:    Jenkins jobs for separate pmb system
+Group:      Development/Tools/Building
+Requires:   %{name}-common = %{version}-%{release}
+
+%description pmb
+Jenkins jobs for separate pmb system
+
 %prep
 %setup -q
 
@@ -325,5 +333,15 @@ fi
 %dir %{destdir}/BUILD-MONITOR-GBS/
 %config %{destdir}/BUILD-MONITOR-GBS/config.xml
 
+%files pmb
+%defattr(-,jenkins,jenkins)
+%dir /var/lib/jenkins
+%dir %{destdir}/Tool_Prereview_Test_Sender/
+%config %{destdir}/Tool_Prereview_Test_Sender/config.xml
+%dir %{destdir}/Tool_Prereview_Test_Receiver/
+%config %{destdir}/Tool_Prereview_Test_Receiver/config.xml
+%dir %{destdir}/Tool_history_update/
+%config %{destdir}/Tool_history_update/config.xml
+
 %changelog