NEW JOB: test-trigger-automation 18/136518/4
authorYonghee Han <onstudy@samsung.com>
Fri, 30 Jun 2017 05:33:00 +0000 (14:33 +0900)
committerYonghee Han <onstudy@samsung.com>
Thu, 6 Jul 2017 00:46:01 +0000 (09:46 +0900)
migration of TRBS_TEST_AUTOMATION job
 local trigger for tester
 public trigger for tester

Disabled : true

Change-Id: I80e12e51db2661222e545a51c52445a9790e621a

debian/jenkins-jobs.install
jobs/configuration
jobs/test-trigger-automation/config.xml [new file with mode: 0644]
packaging/jenkins-jobs.spec

index b7db08b..8491398 100644 (file)
@@ -34,6 +34,7 @@ rpm-build-log /var/lib/jenkins/jobs/
 snapdiff-sync /var/lib/jenkins/jobs/
 sync-obs /var/lib/jenkins/jobs/
 test-results-publisher /var/lib/jenkins/jobs/
+test-trigger-automation /var/lib/jenkins/jobs/
 TRBS_test_result_receiver /var/lib/jenkins/jobs/
 update_git_obs_mapping_for_dashboard /var/lib/jenkins/jobs/
 update_local_git_for_dashboard /var/lib/jenkins/jobs/
index 5a1b13d..e713f28 100644 (file)
@@ -19,6 +19,12 @@ GIT_CACHE_DIR=/var/lib/jenkins/git-cache
 MAPPING_PROJECTS=
 MAPPING_PRJ=scm/git-obs-mapping
 REPOSYAML_PRJ=scm/meta/snapshot-repo-conf
+# Ref Git related parameters
+REF_MAP_UPDATE_ENABLED=1
+REF_MAPPING_PRJ=scm/git-ref-mapping
+
+# TEST TRIGGER
+TEST_TRIGGER_GIT_PATH=scm/test-trigger
 
 # Image Testing parameters
 TESTABLE_IMAGE_DOWNLOADABLES=bz2,bmap
@@ -88,6 +94,22 @@ TMPDIR=/var/lib/jenkins/tmp
 #
 #SYNC_GERRIT_PROJECT_PATTERN=[{'project':'^(?!scm/).*$', 'refname':'.*'}]
 
+#### CONFIGURATION OF TEST TRIGGER ####
+TEST_AUTOMATION_ENABLED=0
+TEST_JENKINS_URL=
+TEST_JENKINS_USER=
+TEST_JENKINS_PW=
+TEST_JOB_NAME=
+TEST_FHUB3.0_JOB_NAME=
+TEST_JOB_TOKEN=
+
+#### CONFIGURATION OF PUBLIC TEST TRIGGER ####
+PUBLIC_TEST_AUTOMATION_ENABLED=0
+PUBLIC_TEST_JENKINS_URL=
+PUBLIC_TEST_JENKINS_USER=
+PUBLIC_TEST_JENKINS_API_TOKEN=
+PUBLIC_TEST_JENKINS_JOB_NAME=
+
 ## BuildMonitor
 BUILDMONITOR_ENABLED=0
 BUILDMONITOR_IP=
@@ -95,7 +117,7 @@ BUILDMONITOR_USER=
 BUILDMONITOR_PASS=
 BUILDMONITOR_NAME=
 BUILDMONITOR_MAX_MSG_LEN=295
-DROPPED_PRERELEASE_PROJECTS=Tizen:3.0:Mobile,Tizen:3.0:Wearable,Tizen:3.0:TV,Tizen:3.0:IVI
+DROPPED_PRERELEASE_PROJECTS=
 
 ## Post Image
 POST_IMAGE_POLL_CNT=3
@@ -113,6 +135,7 @@ NUGET_APIKEY=
 ##########################################################
 # Default : 0 # disalbe : 0  enablle : 1
 REF_CREATE_PRJ_OBS_ENABLE=0
+REF_USE_FOR_PRERELEASE=0
 REF_REMOTE_CREATE_PRJ_OBS_ENABLE=0
 # Example Active projects
 #    profiles = [
diff --git a/jobs/test-trigger-automation/config.xml b/jobs/test-trigger-automation/config.xml
new file mode 100644 (file)
index 0000000..2546741
--- /dev/null
@@ -0,0 +1,135 @@
+<?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>30</daysToKeep>
+        <numToKeep>2000</numToKeep>
+        <artifactDaysToKeep>-1</artifactDaysToKeep>
+        <artifactNumToKeep>-1</artifactNumToKeep>
+      </strategy>
+    </jenkins.model.BuildDiscarderProperty>
+    <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.25">
+      <autoRebuild>false</autoRebuild>
+      <rebuildDisabled>false</rebuildDisabled>
+    </com.sonyericsson.rebuild.RebuildSettings>
+    <hudson.model.ParametersDefinitionProperty>
+      <parameterDefinitions>
+        <hudson.model.StringParameterDefinition>
+          <name>TRIGGER_INFO</name>
+          <description></description>
+          <defaultValue></defaultValue>
+        </hudson.model.StringParameterDefinition>
+      </parameterDefinitions>
+    </hudson.model.ParametersDefinitionProperty>
+  </properties>
+  <scm class="hudson.scm.NullSCM"/>
+  <assignedNode>master</assignedNode>
+  <canRoam>false</canRoam>
+  <disabled>true</disabled>
+  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+  <triggers>
+    <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger plugin="gerrit-trigger@2.22.0">
+      <spec></spec>
+      <gerritProjects>
+        <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
+          <compareType>PLAIN</compareType>
+          <pattern>scm/test-trigger</pattern>
+          <branches>
+            <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
+              <compareType>ANT</compareType>
+              <pattern>**</pattern>
+            </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
+          </branches>
+          <disableStrictForbiddenFileVerification>false</disableStrictForbiddenFileVerification>
+        </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
+      </gerritProjects>
+      <skipVote>
+        <onSuccessful>false</onSuccessful>
+        <onFailed>false</onFailed>
+        <onUnstable>false</onUnstable>
+        <onNotBuilt>false</onNotBuilt>
+      </skipVote>
+      <silentMode>true</silentMode>
+      <notificationLevel></notificationLevel>
+      <silentStartMode>false</silentStartMode>
+      <escapeQuotes>true</escapeQuotes>
+      <nameAndEmailParameterMode>PLAIN</nameAndEmailParameterMode>
+      <dependencyJobsNames></dependencyJobsNames>
+      <commitMessageParameterMode>BASE64</commitMessageParameterMode>
+      <changeSubjectParameterMode>PLAIN</changeSubjectParameterMode>
+      <commentTextParameterMode>BASE64</commentTextParameterMode>
+      <buildStartMessage></buildStartMessage>
+      <buildFailureMessage></buildFailureMessage>
+      <buildSuccessfulMessage></buildSuccessfulMessage>
+      <buildUnstableMessage></buildUnstableMessage>
+      <buildNotBuiltMessage></buildNotBuiltMessage>
+      <buildUnsuccessfulFilepath></buildUnsuccessfulFilepath>
+      <customUrl></customUrl>
+      <serverName>__ANY__</serverName>
+      <triggerOnEvents>
+        <com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.events.PluginRefUpdatedEvent/>
+      </triggerOnEvents>
+      <dynamicTriggerConfiguration>false</dynamicTriggerConfiguration>
+      <triggerConfigURL></triggerConfigURL>
+      <triggerInformationAction/>
+    </com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger>
+  </triggers>
+  <concurrentBuild>false</concurrentBuild>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>#/bin/bash
+
+python jenkins-scripts/job_test_trigger_automation.py</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers>
+    <org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder plugin="groovy-postbuild@2.3.1">
+      <script plugin="script-security@1.23">
+        <script>def matcher = manager.getLogMatcher(&apos;.*&quot;git_tag&quot;: &quot;(.*)&quot;.*&apos;)
+def matcher_2 = manager.getLogMatcher(&apos;.*git_tag: &quot;(.*)&quot;.*&apos;)
+
+if(matcher?.matches()) {
+    manager.addShortText(&quot;\n&quot;+matcher.group(1))
+}
+if(matcher_2?.matches()) {
+    manager.addShortText(&quot;\n&quot;+matcher_2.group(1))
+}</script>
+        <sandbox>false</sandbox>
+      </script>
+      <behavior>0</behavior>
+      <runForMatrixParent>false</runForMatrixParent>
+    </org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
+  </publishers>
+  <buildWrappers>
+    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.30">
+      <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/job_test_trigger_automation.py</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.93.1">
+      <info>
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
+        <loadFilesFromMaster>false</loadFilesFromMaster>
+      </info>
+    </EnvInjectBuildWrapper>
+  </buildWrappers>
+</project>
index 6de029d..483db4b 100644 (file)
@@ -174,6 +174,8 @@ fi
 %config %{destdir}/update_local_git_for_dashboard/config.xml
 %dir %{destdir}/test-trigger-info-update/
 %config %{destdir}/test-trigger-info-update/config.xml
+%dir %{destdir}/test-trigger-automation/
+%config %{destdir}/test-trigger-automation/config.xml
 %dir %{destdir}/add_dotnet_launching_performance_test/
 %config %{destdir}/add_dotnet_launching_performance_test/config.xml
 %dir %{destdir}/Release/