Add tools-testing jobs 07/130107/2
authorhyokeun <hyokeun.jeon@samsung.com>
Fri, 19 May 2017 05:40:20 +0000 (14:40 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Fri, 19 May 2017 06:53:22 +0000 (15:53 +0900)
Change-Id: Ic1c46cae0babb7e10d41e2bd298b9b7d35f04f12

20 files changed:
debian/jenkins-jobs.install
jobs/Pre-release/config.xml [new file with mode: 0644]
jobs/Release/config.xml [new file with mode: 0644]
jobs/Services-Default/config.xml
jobs/Services-jenkins-scripts/config.xml
jobs/Services-obs-service-git-buildpackage/config.xml
jobs/Services-python-snapdiff/config.xml
jobs/Tools-Default/config.xml
jobs/Tools-bmap-tools/config.xml
jobs/Tools-gbs/config.xml
jobs/Tools-git-buildpackage/config.xml
jobs/Tools-mic/config.xml
jobs/Tools-repa/config.xml
jobs/pre-release-create/config.xml
jobs/pre-release-gerrit/config.xml
jobs/pre-release-image-creator/config.xml
jobs/ref-snapshot-info-update/config.xml
jobs/requests/config.xml
jobs/test-results-publisher/config.xml
packaging/jenkins-jobs.spec

index 8d636dd..5ba89b6 100644 (file)
@@ -36,3 +36,5 @@ update_local_git_for_dashboard /var/lib/jenkins/jobs/
 update_scm_meta_git_for_dashboard /var/lib/jenkins/jobs/
 update-nuget /var/lib/jenkins/jobs/
 test-trigger-info-update /var/lib/jenkins/jobs/
+Release /var/lib/jenkins/jobs/
+Pre-release /var/lib/jenkins/jobs/
diff --git a/jobs/Pre-release/config.xml b/jobs/Pre-release/config.xml
new file mode 100644 (file)
index 0000000..eadb524
--- /dev/null
@@ -0,0 +1,166 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<matrix-project plugin="matrix-project@1.6">
+  <actions/>
+  <description>Publish Services or Tools release to archive/. Optionally update symlink. Run only manually.&#xd;
+This multi-config job runs on backend or download server, determined by args;&#xd;
+It skips running on another server.&#xd;
+</description>
+  <logRotator class="hudson.tasks.LogRotator">
+    <daysToKeep>-1</daysToKeep>
+    <numToKeep>50</numToKeep>
+    <artifactDaysToKeep>-1</artifactDaysToKeep>
+    <artifactNumToKeep>-1</artifactNumToKeep>
+  </logRotator>
+  <keepDependencies>false</keepDependencies>
+  <properties>
+    <hudson.security.AuthorizationMatrixProperty>
+      <permission>hudson.model.Item.Read:anonymous</permission>
+    </hudson.security.AuthorizationMatrixProperty>
+    <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.4.1">
+      <useBuildBlocker>false</useBuildBlocker>
+    </hudson.plugins.buildblocker.BuildBlockerProperty>
+    <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@2.8">
+      <priority>100</priority>
+    </hudson.queueSorter.PrioritySorterJobProperty>
+    <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>
+      </parameterDefinitions>
+    </hudson.model.ParametersDefinitionProperty>
+  </properties>
+  <scm class="hudson.scm.NullSCM"/>
+  <canRoam>true</canRoam>
+  <disabled>true</disabled>
+  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+  <triggers/>
+  <concurrentBuild>false</concurrentBuild>
+  <axes>
+    <hudson.matrix.LabelAxis>
+      <name>label</name>
+      <values>
+        <string>backend</string>
+      </values>
+    </hudson.matrix.LabelAxis>
+  </axes>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>#!/bin/sh
+set -x
+RSYNC_OPT=&apos;-avz --exclude=micbootstrap --exclude=tizen-downloader --exclude=lthor-tool --exclude=*/repocache --delete-delay&apos;
+
+modify_repo() {
+  OBS_PATH=$1
+  #echo &quot;modify_repo: OBS_PATH=$OBS_PATH&quot;
+  TEMPARCHIVEDIR=$(mktemp -d)
+  rsync $RSYNC_OPT $OBS_PATH/* $TEMPARCHIVEDIR/
+  # Update the repo file to public URL
+  update_repo_file $TEMPARCHIVEDIR/
+  # Extrace release notes
+  extract_release_notes $TEMPARCHIVEDIR/
+}
+
+update_repo_file() {
+  repo_path=$1
+  #echo &quot;update_repo_file: repo_path=$repo_path&quot;
+  old_working_dir=$(pwd)
+  for dir in $(ls $repo_path)
+  do
+      cd $repo_path/$dir
+      # skip if no repo file found
+      [ -f *.repo ] || continue
+
+      # rename the repo file
+      if [ -n &quot;$REPONAME&quot; ]; then
+          # if there&apos;re more than one repo file, only keep the last one
+          for repofile in $(ls *.repo)
+          do
+              mv -f $repofile $REPONAME.repo
+          done
+          sed -i &quot;s#^\[.*\]#\[$REPONAME\]#g&quot; $REPONAME.repo
+          sed -i &quot;s#^name=.*#name=$REPONAME#g&quot; $REPONAME.repo
+          # Disable gpgcheck
+          sed -i &quot;/^gpg/ d&quot; $REPONAME.repo
+          sed -i &apos;/enable/ a gpgcheck=0&apos; $REPONAME.repo
+      fi
+      # update baseurl
+      public_url=$BASEURL/$dir
+      sed -i &quot;s#^baseurl.*#baseurl=$public_url#g&quot; *.repo
+  done
+  cd $old_working_dir
+}
+
+extract_release_notes() {
+  repo_dir=$1
+  #echo &quot;extract_release_notes: repo_dir=$repo_dir&quot;
+  dist=($(ls $repo_dir))
+  cwd=$(pwd)
+  rpm_list=$(find $repo_dir -name &apos;*.rpm&apos;)
+  temp_list=$(mktemp)
+
+  for rpm in $rpm_list
+  do
+      release_notes_file=$(rpm -qpl $rpm|grep &quot;/RELEASE_NOTES$&quot;)
+      release_notes_name=$(echo $release_notes_file|sed &apos;s#/usr/share/doc/packages/\([a-z0-9-]*\)/RELEASE_NOTES#RELEASE_NOTES_\U\1#&apos;|| echo &apos;&apos;)
+      [ -n &quot;$release_notes_name&quot; ] || continue
+      grep $release_notes_file $temp_list &amp;&amp; continue
+
+      # keep in temp list
+      echo $release_notes_file &gt;&gt; $temp_list
+
+      tempdir=$(mktemp -d)
+      cwd=$(pwd)
+      cd $tempdir
+      rpm2cpio &lt; $rpm |cpio -idmv
+      cd $cwd
+
+      cp $tempdir/$release_notes_file $repo_dir/$release_notes_name.txt
+      rm -r $tempdir
+  done
+  rm $temp_list
+}
+
+######### start of script ########
+# OBS project
+if [ $project = &quot;tools&quot; ]; then
+  obs_project=Tools:
+elif [ $project = &quot;services&quot; ]; then
+  obs_project=Services:
+else
+  echo &quot;Error: Unexpected project value: $project&quot;
+  exit 1
+fi
+
+SRC_PATH=/srv/obs/repos/$obs_project/Pre-release
+DEST_PATH=&quot;${IMG_SYNC_DEST_BASE}/$project/pre-release&quot;
+
+if [ ! -d $SRC_PATH ] ; then
+    echo &quot;Error: Source directory $SRC_PATH does not exist&quot;
+    exit 1
+fi
+
+BASEURL=${URL_PUBLIC_REPO_BASE}/$project/pre-release
+REPONAME=$project
+TEMPARCHIVEDIR=&quot;&quot;
+
+modify_repo $SRC_PATH
+rsync $RSYNC_OPT $TEMPARCHIVEDIR/* $DEST_PATH/
+
+[ -d $TEMPARCHIVEDIR ] &amp;&amp; rm -rf $TEMPARCHIVEDIR</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers/>
+  <buildWrappers/>
+  <executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl">
+    <runSequentially>false</runSequentially>
+  </executionStrategy>
+</matrix-project>
diff --git a/jobs/Release/config.xml b/jobs/Release/config.xml
new file mode 100644 (file)
index 0000000..a1a5fde
--- /dev/null
@@ -0,0 +1,221 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<matrix-project plugin="matrix-project@1.10">
+  <actions/>
+  <description>Publish Services or Tools release to archive/. Optionally update symlink. Run only manually.&#xd;
+This multi-config job runs on backend or download server, determined by args;&#xd;
+It skips running on another server.&#xd;
+</description>
+  <keepDependencies>false</keepDependencies>
+  <properties>
+    <hudson.security.AuthorizationMatrixProperty>
+      <permission>hudson.model.Item.Read:anonymous</permission>
+    </hudson.security.AuthorizationMatrixProperty>
+    <hudson.plugins.buildblocker.BuildBlockerProperty plugin="build-blocker-plugin@1.7.3">
+      <useBuildBlocker>false</useBuildBlocker>
+      <blockLevel>UNDEFINED</blockLevel>
+      <scanQueueFor>DISABLED</scanQueueFor>
+      <blockingJobs></blockingJobs>
+    </hudson.plugins.buildblocker.BuildBlockerProperty>
+    <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.25">
+      <autoRebuild>false</autoRebuild>
+      <rebuildDisabled>false</rebuildDisabled>
+    </com.sonyericsson.rebuild.RebuildSettings>
+    <jenkins.model.BuildDiscarderProperty>
+      <strategy class="hudson.tasks.LogRotator">
+        <daysToKeep>-1</daysToKeep>
+        <numToKeep>50</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>
+        </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"/>
+  <canRoam>true</canRoam>
+  <disabled>false</disabled>
+  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+  <triggers/>
+  <concurrentBuild>false</concurrentBuild>
+  <axes>
+    <hudson.matrix.LabelAxis>
+      <name>label</name>
+      <values>
+        <string>backend</string>
+        <string>download</string>
+      </values>
+    </hudson.matrix.LabelAxis>
+  </axes>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>#!/bin/sh
+set -x
+RSYNC_OPT=&apos;-avz --exclude=micbootstrap --exclude=tizen-downloader --exclude=lthor-tool --exclude=*/repocache --delete-delay&apos;
+
+modify_repo() {
+  OBS_PATH=$1
+  #echo &quot;modify_repo: OBS_PATH=$OBS_PATH&quot;
+  TEMPARCHIVEDIR=$(mktemp -d)
+  rsync $RSYNC_OPT $OBS_PATH/* $TEMPARCHIVEDIR/
+  # Update the repo file to public URL
+  update_repo_file $TEMPARCHIVEDIR/
+  # Extrace release notes
+  extract_release_notes $TEMPARCHIVEDIR/
+}
+
+update_repo_file() {
+  repo_path=$1
+  #echo &quot;update_repo_file: repo_path=$repo_path&quot;
+  old_working_dir=$(pwd)
+  for dir in $(ls $repo_path)
+  do
+      cd $repo_path/$dir
+      # skip if no repo file found
+      [ -f *.repo ] || continue
+
+      # rename the repo file
+      if [ -n &quot;$REPONAME&quot; ]; then
+          # if there&apos;re more than one repo file, only keep the last one
+          for repofile in $(ls *.repo)
+          do
+              mv -f $repofile $REPONAME.repo
+          done
+          sed -i &quot;s#^\[.*\]#\[$REPONAME\]#g&quot; $REPONAME.repo
+          sed -i &quot;s#^name=.*#name=$REPONAME#g&quot; $REPONAME.repo
+          # Disable gpgcheck
+          sed -i &quot;/^gpg/ d&quot; $REPONAME.repo
+          sed -i &apos;/enable/ a gpgcheck=0&apos; $REPONAME.repo
+      fi
+      # update baseurl
+      public_url=$BASEURL/$dir
+      sed -i &quot;s#^baseurl.*#baseurl=$public_url#g&quot; *.repo
+  done
+  cd $old_working_dir
+}
+
+extract_release_notes() {
+  repo_dir=$1
+  #echo &quot;extract_release_notes: repo_dir=$repo_dir&quot;
+  dist=$(ls $repo_dir)
+  cwd=$(pwd)
+  rpm_list=$(find $repo_dir -name &apos;*.rpm&apos;)
+  temp_list=$(mktemp)
+
+  for rpm in $rpm_list
+  do
+      release_notes_file=$(rpm -qpl $rpm|grep &quot;/RELEASE_NOTES$&quot;)
+      release_notes_name=$(echo $release_notes_file|sed &apos;s#/usr/share/doc/packages/\([a-z0-9-]*\)/RELEASE_NOTES#RELEASE_NOTES_\U\1#&apos;|| echo &apos;&apos;)
+      [ -n &quot;$release_notes_name&quot; ] || continue
+      grep $release_notes_file $temp_list &amp;&amp; continue
+
+      # keep in temp list
+      echo $release_notes_file &gt;&gt; $temp_list
+
+      tempdir=$(mktemp -d)
+      cwd=$(pwd)
+      cd $tempdir
+      rpm2cpio &lt; $rpm |cpio -idmv
+      cd $cwd
+
+      cp $tempdir/$release_notes_file $repo_dir/$release_notes_name.txt
+      rm -r $tempdir
+  done
+  rm $temp_list
+}
+
+######### start of script ########
+if [ -z &quot;$release_id&quot; ] ; then
+    echo &quot;Error: release_id is mandatory.&quot;
+    exit 1
+fi
+
+if [ $project = &quot;tools&quot; ]; then
+  obs_project=Tools
+elif [ $project = &quot;services&quot; ]; then
+  obs_project=Services
+else
+  echo &quot;Error: Unexpected project value: $project&quot;
+  exit 1
+fi
+
+case $destination in
+    &apos;staging&apos;)
+         [ $label != backend ] &amp;&amp; exit 0
+         staging=.staging/
+         SRC_PATH=/srv/obs/repos/$obs_project
+         DEST_PATH=&quot;${IMG_SYNC_DEST_BASE}/${project}/.staging&quot;
+         ;;
+    &apos;download.tizen.org&apos;)
+         [ $label != download ] &amp;&amp; exit 0
+         staging=&quot;&quot;
+         SRC_PATH=/srv/www/download.tizen.org/$project/.staging/archive/$release_id
+         DEST_PATH=/srv/www/download.tizen.org/$project
+         ;;
+    *)
+         echo &quot;Error: Wrong destination&quot;
+         exit 1
+esac
+
+if [ ! -d $SRC_PATH ] ; then
+    echo &quot;Error: Source directory $SRC_PATH does not exist&quot;
+    exit 1
+fi
+
+BASEURL=${URL_PUBLIC_REPO_BASE}/$project/${staging}archive/$release_id
+REPONAME=$project
+TEMPARCHIVEDIR=&quot;&quot;
+
+modify_repo $SRC_PATH
+rsync $RSYNC_OPT $TEMPARCHIVEDIR/* $DEST_PATH/archive/$release_id
+
+if [ &quot;$update_latest_release&quot; = &quot;YES&quot; ]; then
+    [ AAA${TEMPARCHIVEDIR} = &quot;AAA&quot; ] &amp;&amp; modify_repo $SRC_PATH
+    rsync $RSYNC_OPT $TEMPARCHIVEDIR/* $DEST_PATH/latest-release
+fi
+[ -d $TEMPARCHIVEDIR ] &amp;&amp; rm -rf $TEMPARCHIVEDIR</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers/>
+  <buildWrappers/>
+  <executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl">
+    <runSequentially>false</runSequentially>
+  </executionStrategy>
+</matrix-project>
index e1d2a0c..c2a72aa 100644 (file)
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>package=$(basename $GERRIT_PROJECT)
-/usr/bin/tools-testing-run-test.sh $package Services -u git://review.prod.infra.tizen.org/services/$package.git --skip-disabled
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Services -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git --skip-disabled
 </command>
     </hudson.tasks.Shell>
   </builders>
   <publishers/>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
-        <propertiesContent>EXTRA_REPOS=openSUSE-12.3:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_12.3/\
-openSUSE-13.1:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_13.1/\
-openSUSE-13.2:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_13.2/
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
+        <propertiesContent>EXTRA_REPOS=openSUSE-12.3:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_12.3/\
+openSUSE-13.1:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_13.1/\
+openSUSE-13.2:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_13.2/
 
 TEST_REQUIRES=openSUSE-12.3:python-pytest\
 openSUSE-13.1:python-pytest\
index 5e56769..f319726 100644 (file)
@@ -99,7 +99,9 @@
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>/usr/bin/tools-testing-run-test.sh jenkins-scripts Services -u git://review.prod.infra.tizen.org/services/jenkins-scripts.git
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Services -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git
 </command>
     </hudson.tasks.Shell>
   </builders>
     </hudson.plugins.violations.ViolationsPublisher>
   </publishers>
   <buildWrappers>
-    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.32">
+    <hudson.plugins.ws__cleanup.PreBuildCleanup plugin="ws-cleanup@0.33">
       <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</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@2.0">
       <info>
-        <propertiesContent>EXTRA_REPOS=openSUSE-12.3:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_12.3/\
-openSUSE-13.1:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_13.1/\
-openSUSE-13.2:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_13.2/
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
+        <propertiesContent>EXTRA_REPOS=openSUSE-12.3:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_12.3/\
+openSUSE-13.1:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_13.1/\
+openSUSE-13.2:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_13.2/
+
 TEST_REQUIRES=openSUSE-12.3:python-mock python-nose\
 openSUSE-13.1:python-mock python-nose\
 openSUSE-13.2:python-mock python-nose</propertiesContent>
index dbd0a05..4fd5751 100644 (file)
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>/usr/bin/tools-testing-run-test.sh obs-service-git-buildpackage Services -u git://review.prod.infra.tizen.org/services/obs-service-git-buildpackage.git
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Services -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git
+
 </command>
     </hudson.tasks.Shell>
   </builders>
     </hudson.plugins.violations.ViolationsPublisher>
   </publishers>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
-        <propertiesContent>EXTRA_REPOS=openSUSE-12.3:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_12.3/\
-openSUSE-13.1:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_13.1/\
-openSUSE-13.2:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_13.2/
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
+        <propertiesContent>EXTRA_REPOS=openSUSE-12.3:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_12.3/\
+openSUSE-13.1:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_13.1/\
+openSUSE-13.2:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_13.2/
+
 TEST_REQUIRES=openSUSE-12.3:python-mock python-nose\
 openSUSE-13.1:python-mock python-nose\
 openSUSE-13.2:python-mock python-nose</propertiesContent>
index 77650fd..50bf815 100644 (file)
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>/usr/bin/tools-testing-run-test.sh python-snapdiff Services -u git://review.prod.infra.tizen.org/services/python-snapdiff.git
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Services -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git
+
 </command>
     </hudson.tasks.Shell>
   </builders>
     </hudson.plugins.violations.ViolationsPublisher>
   </publishers>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
-        <propertiesContent>EXTRA_REPOS=openSUSE-12.3:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_12.3/\
-openSUSE-13.1:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_13.1/\
-openSUSE-13.2:http://download.prod.infra.tizen.org/Tools:/Devel/openSUSE_13.2/
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
+        <propertiesContent>EXTRA_REPOS=openSUSE-12.3:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_12.3/\
+openSUSE-13.1:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_13.1/\
+openSUSE-13.2:${URL_PUBLIC_REPO_BASE}/Tools:/Devel/openSUSE_13.2/
 </propertiesContent>
         <secureGroovyScript plugin="script-security@1.27">
           <script></script>
index 9d0ec1c..e2249d2 100644 (file)
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>package=$(basename $GERRIT_PROJECT)
-/usr/bin/tools-testing-run-test.sh $package Tools -u git://review.prod.infra.tizen.org/tools/$package.git --skip-disabled
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Tools -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git --skip-disabled
 </command>
     </hudson.tasks.Shell>
   </builders>
   <publishers/>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
         <secureGroovyScript plugin="script-security@1.27">
           <script></script>
           <sandbox>false</sandbox>
index 60bf1eb..d7e7373 100644 (file)
@@ -99,7 +99,9 @@
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>/usr/bin/tools-testing-run-test.sh bmap-tools Tools -u git://review.prod.infra.tizen.org/tools/bmap-tools.git
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Tools -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git
 </command>
     </hudson.tasks.Shell>
   </builders>
     </hudson.plugins.violations.ViolationsPublisher>
   </publishers>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
         <secureGroovyScript plugin="script-security@1.27">
           <script></script>
           <sandbox>false</sandbox>
index 6225584..b2f56a5 100644 (file)
@@ -99,7 +99,9 @@
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>/usr/bin/tools-testing-run-test.sh gbs Tools -u git://review.prod.infra.tizen.org/tools/gbs.git
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Tools -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git
 </command>
     </hudson.tasks.Shell>
   </builders>
     </hudson.plugins.violations.ViolationsPublisher>
   </publishers>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
         <secureGroovyScript plugin="script-security@1.27">
           <script></script>
           <sandbox>false</sandbox>
index 6075788..cc9e029 100644 (file)
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>/usr/bin/tools-testing-run-test.sh git-buildpackage Tools -u git://review.prod.infra.tizen.org/tools/git-buildpackage.git</command>
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Tools -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git
+</command>
     </hudson.tasks.Shell>
   </builders>
   <publishers>
     </hudson.plugins.violations.ViolationsPublisher>
   </publishers>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
         <propertiesContent>TEST_REQUIRES=CentOS-6.6:tar pristine-tar unzip gnupg man python-mock librpm-tizen dpkg-devel\
 openSUSE-12.2:tar pristine-tar unzip man\
 openSUSE-12.3:tar pristine-tar unzip man\
index ebf83b0..aa8e0f7 100644 (file)
@@ -99,7 +99,9 @@
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>/usr/bin/tools-testing-run-test.sh mic Tools -u git://review.prod.infra.tizen.org/tools/mic.git
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Tools -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git
 </command>
     </hudson.tasks.Shell>
   </builders>
     </hudson.plugins.violations.ViolationsPublisher>
   </publishers>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
         <secureGroovyScript plugin="script-security@1.27">
           <script></script>
           <sandbox>false</sandbox>
index 131e641..3a6769a 100644 (file)
@@ -99,7 +99,9 @@
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>/usr/bin/tools-testing-run-test.sh repa Tools -u git://review.prod.infra.tizen.org/tools/repa.git
+      <command>#/bin/bash
+
+/usr/bin/tools-testing-run-test.sh `basename ${GERRIT_PROJECT}` Tools -u git://${GIT_HOSTNAME}/${GERRIT_PROJECT}.git
 </command>
     </hudson.tasks.Shell>
   </builders>
     </hudson.plugins.violations.ViolationsPublisher>
   </publishers>
   <buildWrappers>
+    <com.michelin.cio.hudson.plugins.copytoslave.CopyToSlaveBuildWrapper plugin="copy-to-slave@1.4.4">
+      <includes>configuration</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@2.0">
       <info>
+        <propertiesFilePath>${WORKSPACE}/configuration</propertiesFilePath>
         <secureGroovyScript plugin="script-security@1.27">
           <script></script>
           <sandbox>false</sandbox>
index 26a4b9b..8dba4fd 100755 (executable)
@@ -107,7 +107,7 @@ python ${WORKSPACE}/jenkins-scripts/job_pre_release_obs.py create_images
   <publishers>
     <org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder plugin="groovy-postbuild@2.3.1">
       <script plugin="script-security@1.27">
-        <script>def project = manager.getLogMatcher(&apos;.*&quot;project&quot;: &quot;(.*)&quot;.*&apos;)
+        <script>def project = manager.getLogMatcher(&apos;.*&quot;project&quot;: &quot;home:prerelease:(.*):submit:(.*)&quot;.*&apos;)
 
 if(project?.matches()) {
     manager.addShortText(&quot;\n&quot;)
@@ -171,4 +171,4 @@ if(project?.matches()) {
       </info>
     </EnvInjectBuildWrapper>
   </buildWrappers>
-</project>
\ No newline at end of file
+</project>
index d0536b7..a0cfe56 100755 (executable)
@@ -164,7 +164,7 @@ if(matcher?.matches()) {
       </configs>
     </hudson.plugins.parameterizedtrigger.BuildTrigger>
     <hudson.tasks.Mailer plugin="mailer@1.20">
-      <recipients>onstudy@samsung.com</recipients>
+      <recipients>tizen.build@samsung.com</recipients>
       <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
       <sendToIndividuals>false</sendToIndividuals>
     </hudson.tasks.Mailer>
@@ -186,4 +186,4 @@ if(matcher?.matches()) {
       </info>
     </EnvInjectBuildWrapper>
   </buildWrappers>
-</project>
\ No newline at end of file
+</project>
index 7105fcf..bc86961 100644 (file)
@@ -8,7 +8,8 @@
       <useBuildBlocker>true</useBuildBlocker>
       <blockLevel>UNDEFINED</blockLevel>
       <scanQueueFor>DISABLED</scanQueueFor>
-      <blockingJobs>image-creator</blockingJobs>
+      <blockingJobs>image-creator
+create-snapshot</blockingJobs>
     </hudson.plugins.buildblocker.BuildBlockerProperty>
     <jenkins.model.BuildDiscarderProperty>
       <strategy class="hudson.tasks.LogRotator">
index daa5c2c..49e0049 100644 (file)
       <scanQueueFor>DISABLED</scanQueueFor>
       <blockingJobs></blockingJobs>
     </hudson.plugins.buildblocker.BuildBlockerProperty>
+    <com.sonyericsson.rebuild.RebuildSettings plugin="rebuild@1.25">
+      <autoRebuild>false</autoRebuild>
+      <rebuildDisabled>false</rebuildDisabled>
+    </com.sonyericsson.rebuild.RebuildSettings>
     <jenkins.model.BuildDiscarderProperty>
       <strategy class="hudson.tasks.LogRotator">
         <daysToKeep>7</daysToKeep>
         <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>
           <description></description>
           <defaultValue></defaultValue>
         </hudson.model.StringParameterDefinition>
-        <hudson.model.ChoiceParameterDefinition>
+        <hudson.model.StringParameterDefinition>
           <name>profile</name>
-          <description></description>
-          <choices class="java.util.Arrays$ArrayList">
-            <a class="string-array">
-              <string></string>
-              <string>Tizen:3.0:Mobile</string>
-              <string>Tizen:3.0:Wearable</string>
-              <string>Tizen:3.0:TV</string>
-              <string>Tizen:3.0:Base</string>
-            </a>
-          </choices>
-        </hudson.model.ChoiceParameterDefinition>
+          <description>Tizen:Unified
+Tizen:3.0:Mobile
+Tizen:3.0:Wearable
+Tizen:3.0:TV
+Tizen:3.0:Base</description>
+          <defaultValue></defaultValue>
+        </hudson.model.StringParameterDefinition>
         <hudson.model.StringParameterDefinition>
           <name>release_id</name>
           <description>Example: tizen-3.0-wearable_20161223.2</description>
@@ -81,7 +77,7 @@ if(matcher_title?.matches()) {
       <behavior>0</behavior>
       <runForMatrixParent>false</runForMatrixParent>
     </org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
-    <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.32">
+    <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.33">
       <patterns class="empty-list"/>
       <deleteDirs>false</deleteDirs>
       <skipWhenFailed>false</skipWhenFailed>
index 9c502a9..2221383 100755 (executable)
@@ -66,21 +66,8 @@ python ${JENKINS_HOME}/jenkins-scripts/job_request.py</command>
     </hudson.plugins.parameterizedtrigger.TriggerBuilder>
   </builders>
   <publishers>
-    <org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder plugin="groovy-postbuild@2.3.1">
-      <script plugin="script-security@1.27">
-        <script>def prj = manager.getLogMatcher(&apos;.*&quot;targetproject&quot;: &quot;(.*)&quot;.*&apos;)
-def pkg = manager.getLogMatcher(&apos;.*&quot;targetpackage&quot;: &quot;(.*)&quot;.*&apos;)
-def state = manager.getLogMatcher(&apos;.*&quot;state&quot;: &quot;(.*)&quot;.*&apos;)
-def sr = manager.getLogMatcher(&apos;.*&quot;id&quot;: &quot;(.*)&quot;.*&apos;)
-manager.addShortText(prj.group(1)+&apos;:&apos;+pkg.group(1)+&apos;:&apos;+state.group(1)+&apos;:&apos;+sr.group(1))
-</script>
-        <sandbox>false</sandbox>
-      </script>
-      <behavior>0</behavior>
-      <runForMatrixParent>false</runForMatrixParent>
-    </org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
     <hudson.tasks.Mailer plugin="mailer@1.20">
-      <recipients>onstudy@samsung.com</recipients>
+      <recipients>tizen.build@samsung.com</recipients>
       <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
       <sendToIndividuals>false</sendToIndividuals>
     </hudson.tasks.Mailer>
index b5c48ee..4edf7f9 100755 (executable)
@@ -47,7 +47,7 @@
   </properties>
   <scm class="hudson.scm.NullSCM"/>
   <canRoam>true</canRoam>
-  <disabled>true</disabled>
+  <disabled>false</disabled>
   <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
   <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
   <triggers/>
@@ -86,4 +86,4 @@ python ${WORKSPACE}/jenkins-scripts/job_publish_test_results.py
       </info>
     </EnvInjectBuildWrapper>
   </buildWrappers>
-</project>
\ No newline at end of file
+</project>
index 9183cd7..547e6bd 100644 (file)
@@ -152,6 +152,10 @@ 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}/Release/
+%config %{destdir}/Release/config.xml
+%dir %{destdir}/Pre-release/
+%config %{destdir}/Pre-release/config.xml
 
 %files common
 %defattr(-,jenkins,jenkins)