[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 <tracy.gray...@intel.com> --- 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: 'builder1' @@ -276,6 +276,47 @@ scheduler: [{'dev-branch-scheduler' : 'stable-timer':30, 'change-password':'secret_change_password'}}] + +Example of MultiBranch GitPoller: + +[git-poller] +builders: 'example-worker' +repos: [{'poky-contrib': + {'repourl':'git://git.yoctoproject.org/poky-contrib', + 'layerversion':{'core':'meta', 'yoctobsp':'meta-yocto-bsp'}, + 'branch':'tgraydon/poky'}}, + {'meta-qt3': + {'repourl':'git://git.yoctoproject.org/poky-contrib', + 'branch':'tgraydon/meta-qt3'}}] +steps: [{'SetDest':{}}, + {'CheckOutLayers': {}}, + {'RunPreamble': {}}, + {'GetDistroVersion' : {'distro': 'poky'}}, + {'CreateAutoConf': {'machine': 'qemux86', 'SDKMACHINE' : 'i686', + 'distro': 'poky'}}, + {'CreateBBLayersConf': {'buildprovider' : 'yocto'}}, + {'BuildImages': {'images': 'core-image-sato'}}, + {'PublishLayerTarballs':{}}, + {'PublishArtifacts': {'artifacts': ['qemux86', 'atom-pc']}}] +scheduler: [{'git-poller-scheduler': + {'type':'SingleBranchScheduler', + 'changesource':'GitPoller', + 'repository':'poky-contrib', + 'branch':'tgraydon/poky', + 'interval':3600}, + 'stable-timer':300}}] +scheduler: [{'git-poller-scheduler': + {'type':'SingleBranchScheduler', + 'changesource':'GitPoller', + 'repository':'poky-contrib', + 'branch':'tgraydon/meta-qt3', + 'interval':3600}, + 'stable-timer':300}}] + +Note that the 'change-password' property is not used for GitPoller. This +buildset config may also be found in the build-config.examples directory. + + Adding Buildsteps ------------- I'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: 'example-worker' +repos: [{'poky-contrib': + {'repourl':'git://git.yoctoproject.org/poky-contrib', + 'layerversion':{'core':'meta', 'yoctobsp':'meta-yocto-bsp'}, + 'branch':'tgraydon/poky'}}, + {'meta-qt3': + {'repourl':'git://git.yoctoproject.org/poky-contrib', + 'branch':'tgraydon/meta-qt3'}}] +steps: [{'SetDest':{}}, + {'CheckOutLayers': {}}, + {'RunPreamble': {}}, + {'GetDistroVersion' : {'distro': 'poky'}}, + {'CreateAutoConf': {'machine': 'qemux86', 'SDKMACHINE' : 'i686', + 'distro': 'poky'}}, + {'CreateBBLayersConf': {'buildprovider' : 'yocto'}}, + {'BuildImages': {'images': 'core-image-sato'}}, + {'PublishLayerTarballs':{}}, + {'PublishArtifacts': {'artifacts': ['qemux86', 'atom-pc']}}] +scheduler: [{'git-poller-scheduler': + {'type':'SingleBranchScheduler', + 'changesource':'GitPoller', + 'repository':'poky-contrib', + 'branch':'tgraydon/poky', + 'interval':'3600, + 'stable-timer':300}}] +scheduler: [{'git-poller-scheduler': + {'type':'SingleBranchScheduler', + 'changesource':'GitPoller', + 'repository':'poky-contrib', + 'branch':'tgraydon/meta-qt3', + 'interval':'3600, + 'stable-timer':300}}] -- 1.9.3 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto