<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7702</bug_id>
          
          <creation_ts>2015-04-30 19:22:33 +0000</creation_ts>
          <short_desc>Multibranch-git poller</short_desc>
          <delta_ts>2015-11-02 17:03:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>1.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tracy Graydon">tracy.graydon</reporter>
          <assigned_to name="Tracy Graydon">tracy.graydon</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>elizabeth.flanagan</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50694</commentid>
    <comment_count>0</comment_count>
    <who name="Tracy Graydon">tracy.graydon</who>
    <bug_when>2015-04-30 19:22:33 +0000</bug_when>
    <thetext>If any branch in the repo changes we want to pull. This should already be supported</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54182</commentid>
    <comment_count>1</comment_count>
    <who name="Tracy Graydon">tracy.graydon</who>
    <bug_when>2015-09-17 05:47:17 +0000</bug_when>
    <thetext>Submitted to mailing list for review. 


[YOCTO #7702]

This patchset provides an example buildset conf for a multi-
branch GitPoller, which may be found in the
build-config.examples directory. The README-NEW-AUTOBUILDER
file has also been updated with this example.

Signed-off-by: Graydon, Tracy &lt;tracy.graydon@intel.com&gt;
---
README-NEW-AUTOBUILDER                  | 43 ++++++++++++++++++++++++++++++++-
buildset-config.examples/gitpoller.conf | 33 +++++++++++++++++++++++++
2 files changed, 75 insertions(+), 1 deletion(-)
create mode 100644 buildset-config.examples/gitpoller.conf

diff --git a/README-NEW-AUTOBUILDER b/README-NEW-AUTOBUILDER
index d519b15..c37c8c4 100644
--- a/README-NEW-AUTOBUILDER
+++ b/README-NEW-AUTOBUILDER
@@ -249,7 +249,7 @@ scheduler: A list of dicts. Each item defines a scheduler associated with this
            If you are using a SingleBranchScheduler schedule, it is good
            practice to force a build to verify the buildset works correctly.
-Example:
+Example of PBChangeSource:
[nightly-x86]
builders: &apos;builder1&apos;
@@ -276,6 +276,47 @@ scheduler: [{&apos;dev-branch-scheduler&apos; :
                  &apos;stable-timer&apos;:30,
                  &apos;change-password&apos;:&apos;secret_change_password&apos;}}]
+
+Example of MultiBranch GitPoller:
+
+[git-poller]
+builders: &apos;example-worker&apos;
+repos: [{&apos;poky-contrib&apos;:
+            {&apos;repourl&apos;:&apos;git://git.yoctoproject.org/poky-contrib&apos;,
+             &apos;layerversion&apos;:{&apos;core&apos;:&apos;meta&apos;, &apos;yoctobsp&apos;:&apos;meta-yocto-bsp&apos;},
+             &apos;branch&apos;:&apos;tgraydon/poky&apos;}},
+        {&apos;meta-qt3&apos;:
+            {&apos;repourl&apos;:&apos;git://git.yoctoproject.org/poky-contrib&apos;,
+             &apos;branch&apos;:&apos;tgraydon/meta-qt3&apos;}}]
+steps: [{&apos;SetDest&apos;:{}},
+        {&apos;CheckOutLayers&apos;: {}},
+        {&apos;RunPreamble&apos;: {}},
+        {&apos;GetDistroVersion&apos; : {&apos;distro&apos;: &apos;poky&apos;}},
+        {&apos;CreateAutoConf&apos;: {&apos;machine&apos;: &apos;qemux86&apos;, &apos;SDKMACHINE&apos; : &apos;i686&apos;,
+                            &apos;distro&apos;: &apos;poky&apos;}},
+        {&apos;CreateBBLayersConf&apos;: {&apos;buildprovider&apos; : &apos;yocto&apos;}},
+        {&apos;BuildImages&apos;: {&apos;images&apos;: &apos;core-image-sato&apos;}},
+        {&apos;PublishLayerTarballs&apos;:{}},
+        {&apos;PublishArtifacts&apos;: {&apos;artifacts&apos;: [&apos;qemux86&apos;, &apos;atom-pc&apos;]}}]
+scheduler: [{&apos;git-poller-scheduler&apos;:
+            {&apos;type&apos;:&apos;SingleBranchScheduler&apos;,
+             &apos;changesource&apos;:&apos;GitPoller&apos;,
+             &apos;repository&apos;:&apos;poky-contrib&apos;,
+             &apos;branch&apos;:&apos;tgraydon/poky&apos;,
+             &apos;interval&apos;:3600},
+             &apos;stable-timer&apos;:300}}]
+scheduler: [{&apos;git-poller-scheduler&apos;:
+            {&apos;type&apos;:&apos;SingleBranchScheduler&apos;,
+             &apos;changesource&apos;:&apos;GitPoller&apos;,
+             &apos;repository&apos;:&apos;poky-contrib&apos;,
+             &apos;branch&apos;:&apos;tgraydon/meta-qt3&apos;,
+             &apos;interval&apos;:3600},
+             &apos;stable-timer&apos;:300}}]
+
+Note that the &apos;change-password&apos; property is not used for GitPoller. This
+buildset config may also be found in the build-config.examples directory.
+
+
Adding Buildsteps
-------------
I&apos;ve included the basic buildsteps required to do general building as well as an
diff --git a/buildset-config.examples/gitpoller.conf b/buildset-config.examples/gitpoller.conf
new file mode 100644
index 0000000..9bf5165
--- /dev/null
+++ b/buildset-config.examples/gitpoller.conf
@@ -0,0 +1,33 @@
+[git-poller]
+builders: &apos;example-worker&apos;
+repos: [{&apos;poky-contrib&apos;:
+            {&apos;repourl&apos;:&apos;git://git.yoctoproject.org/poky-contrib&apos;,
+             &apos;layerversion&apos;:{&apos;core&apos;:&apos;meta&apos;, &apos;yoctobsp&apos;:&apos;meta-yocto-bsp&apos;},
+             &apos;branch&apos;:&apos;tgraydon/poky&apos;}},
+        {&apos;meta-qt3&apos;:
+            {&apos;repourl&apos;:&apos;git://git.yoctoproject.org/poky-contrib&apos;,
+             &apos;branch&apos;:&apos;tgraydon/meta-qt3&apos;}}]
+steps: [{&apos;SetDest&apos;:{}},
+        {&apos;CheckOutLayers&apos;: {}},
+        {&apos;RunPreamble&apos;: {}},
+        {&apos;GetDistroVersion&apos; : {&apos;distro&apos;: &apos;poky&apos;}},
+        {&apos;CreateAutoConf&apos;: {&apos;machine&apos;: &apos;qemux86&apos;, &apos;SDKMACHINE&apos; : &apos;i686&apos;,
+                            &apos;distro&apos;: &apos;poky&apos;}},
+        {&apos;CreateBBLayersConf&apos;: {&apos;buildprovider&apos; : &apos;yocto&apos;}},
+        {&apos;BuildImages&apos;: {&apos;images&apos;: &apos;core-image-sato&apos;}},
+        {&apos;PublishLayerTarballs&apos;:{}},
+        {&apos;PublishArtifacts&apos;: {&apos;artifacts&apos;: [&apos;qemux86&apos;, &apos;atom-pc&apos;]}}]
+scheduler: [{&apos;git-poller-scheduler&apos;:
+            {&apos;type&apos;:&apos;SingleBranchScheduler&apos;,
+             &apos;changesource&apos;:&apos;GitPoller&apos;,
+             &apos;repository&apos;:&apos;poky-contrib&apos;,
+             &apos;branch&apos;:&apos;tgraydon/poky&apos;,
+             &apos;interval&apos;:&apos;3600,
+             &apos;stable-timer&apos;:300}}]
+scheduler: [{&apos;git-poller-scheduler&apos;:
+            {&apos;type&apos;:&apos;SingleBranchScheduler&apos;,
+             &apos;changesource&apos;:&apos;GitPoller&apos;,
+             &apos;repository&apos;:&apos;poky-contrib&apos;,
+             &apos;branch&apos;:&apos;tgraydon/meta-qt3&apos;,
+             &apos;interval&apos;:&apos;3600,
+             &apos;stable-timer&apos;:300}}]
--
1.9.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54184</commentid>
    <comment_count>2</comment_count>
    <who name="Tracy Graydon">tracy.graydon</who>
    <bug_when>2015-09-17 05:48:27 +0000</bug_when>
    <thetext>*** Bug 7686 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55366</commentid>
    <comment_count>3</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2015-10-15 18:19:32 +0000</bug_when>
    <thetext>Pulled into master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56103</commentid>
    <comment_count>4</comment_count>
    <who name="Mihail Stanciu">stanciux.mihail</who>
    <bug_when>2015-11-02 17:03:03 +0000</bug_when>
    <thetext>Verified README changes and example is present.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>