Skip to contentSkip to conversation

add support for building the eclipse-poky-neon plugin

PATCH Applied Bill Randle 2 participants 2 messages Aug 19, 2016 – Aug 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add support for building the eclipse-poky-neon plugin

Add configs to build the eclipse poky neon plugin and drop support for the kepler branch. Also, generate md5sums for the eclipse plugin artifacts. (Note: building neon requires java 1.8.0.)

[YOCTO #9940]

---
 buildset-config.controller/nightly.conf                       | 6 +-----
 buildset-config.controller/eclipse-plugin-neon.conf           | 11 +++++++++++
 buildset-config.controller/yoctoAB.conf                       |  4 ++--
 .../site-packages/autobuilder/buildsteps/PublishArtifacts.py  | 11 ++++++++---
 4 files changed, 26 insertions(+), 10 deletions(-)
 create mode 100644 buildset-config.controller/eclipse-plugin-neon.conf
buildset-config.controller/nightly.conf +5 -5
index c16c147..0f9dd4e 100644
@@ -23,14 +23,14 @@
             {'repourl':'git://git.yoctoproject.org/eclipse-poky',
              'checkout':False,
              'branch':'luna-master'}},
-        {'eclipse-poky-kepler':
-            {'repourl':'git://git.yoctoproject.org/eclipse-poky',
-             'checkout':False,
-             'branch':'kepler-master'}},
         {'eclipse-poky-mars':
             {'repourl':'git://git.yoctoproject.org/eclipse-poky',
              'checkout':False,
              'branch':'mars-master'}},
+        {'eclipse-poky-neon':
+            {'repourl':'git://git.yoctoproject.org/eclipse-poky',
+             'checkout':False,
+             'branch':'neon-master'}},
         {'meta-qt4':
             {'repourl':'git://git.yoctoproject.org/meta-qt4',
              'branch':'master'}},
@@ -103,7 +103,7 @@
                            'nightly-mips64': {}, 'nightly-arm64': {}, 
                            'nightly-rpm-non-rpm': {}, 'nightly-deb-non-deb': {}},
                            'schedulerNames_nowait' : {'nightly-uclibc':{}, 'build-appliance': {},
-                           'eclipse-plugin-kepler': {}, 'eclipse-plugin-mars': {},
+                           'eclipse-plugin-neon': {}, 'eclipse-plugin-mars': {},
                            'eclipse-plugin-luna': {}, 'nightly-non-gpl3': {}, 
                            'nightly-oecore': {}, 'nightly-world':{},'nightly-wic':{}, 
                            'nightly-world-lsb':{}, 'nightly-intel-gpl': {},
buildset-config.controller/yoctoAB.conf +2 -2
index 0f9ba0c..fe9750b 100644
@@ -1,6 +1,6 @@
 [BuildSets]
-order: ['nightly', 'eclipse-plugin-mars', 
-        'eclipse-plugin-kepler', 'eclipse-plugin-luna',
+order: ['nightly', 'eclipse-plugin-neon', 'eclipse-plugin-mars', 
+        'eclipse-plugin-luna',
         'nightly-arm', 'nightly-arm64', 'nightly-arm-lsb', 
         'nightly-mips', 'nightly-mips64', 'nightly-mips-lsb', 
         'nightly-ppc', 'nightly-ppc-lsb', 'nightly-no-x11',
lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py +8 -3
index 1a938fc..d8b554f 100644
@@ -96,10 +96,15 @@ class PublishArtifacts(ShellCommand):
                         command=command+"mv " + adt_dev_dest + "/rootfs/qemux86-64 " + adt_dev_dest + "/rootfs/qemux86_64;"
                 elif "eclipse-plugin" in artifact:
                     artifact_base = artifact.replace("eclipse-plugin-", "")
+                    deploy_dir = os.path.join(os.path.join(self.workerdir, buildername), "build/scripts")
+                    # create md5sums only for the zip files
+                    if os.environ.get('GEN_IMG_MD5') == "True":
+                        command += "for x in `ls " + deploy_dir + "/*.zip`;"
+                        command += "do md5sum $x >> " + "$x.md5sum; done;"
                     command=command+"mkdir -p " + DEST + "/eclipse-plugin/"+ artifact_base +";"
-                    command=command+"cp -R --no-dereference --preserve=links " + \
-                                     os.path.join(os.path.join(self.workerdir, buildername),
-                                                 "build/scripts/org.*.zip") + \
+                    command=command+"cp --no-dereference --preserve=links " + \
+                                     os.path.join(deploy_dir, "org.*.zip") + \
+                                     " " + os.path.join(deploy_dir, "org.*.md5sum") + \
                                      " " + DEST + "/eclipse-plugin/"+ artifact_base +";"
                 elif artifact == "build-appliance":
                     command=command+"mkdir -p " + DEST + "/" + BA_PUBLISH_DIR + ";"
buildset-config.controller/eclipse-plugin-neon.conf new file +11 -0
new file mode 100644
index 0000000..0a262d2
@@ -0,0 +1,11 @@
+[eclipse-plugin-neon]
+builders: 'example-worker'
+repos: [{'eclipse-poky-neon':
+            {'repourl':'git://git.yoctoproject.org/eclipse-poky',
+             'branch':'neon-master'}}]
+steps: [{'SetDest':{}},
+        {'CheckOutLayers': {}},
+        {'BuildEclipsePlugin': {'eclipsedir': 'eclipse-poky-neon'}},
+        {'PublishLayerTarballs':{}},
+        {'PublishArtifacts': {'artifacts': ['eclipse-plugin-neon']}}]
+
Signature · 1 line
2.5.5
Applied
#1 lore raw
Quoted 7 lines · Bill Randle

Add configs to build the eclipse poky neon plugin and drop support for the
kepler branch. Also, generate md5sums for the eclipse plugin artifacts.
(Note: building neon requires java 1.8.0.)

[YOCTO #9940]

Pushed to master, thanks.

Joshua

Quoted 134 lines

---
 buildset-config.controller/nightly.conf                       | 6 +-
----
 buildset-config.controller/eclipse-plugin-neon.conf           | 11
+++++++++++
 buildset-config.controller/yoctoAB.conf                       |  4
++--
 .../site-packages/autobuilder/buildsteps/PublishArtifacts.py  | 11
++++++++---

 4 files changed, 26 insertions(+), 10 deletions(-)

 create mode 100644 buildset-config.controller/eclipse-plugin- neon.conf

buildset- renamed from buildset-config.controller/nightly.conf +0 -0

config.controller/nightly.conf
index c16c147..0f9dd4e 100644

buildset-config.controller/nightly.conf +0 -4
@@ -23,14 +23,14 @@
              {'repourl':'git://git.yoctoproject.org/eclipse-poky',
               'checkout':False,
               'branch':'luna-master'}},
-        {'eclipse-poky-kepler':
-            {'repourl':'git://git.yoctoproject.org/eclipse-poky',
-             'checkout':False,
-             'branch':'kepler-master'}},

         {'eclipse-poky-mars':
             {'repourl':'git://git.yoctoproject.org/eclipse-poky', 'checkout':False, 'branch':'mars-master'}},
+        {'eclipse-poky-neon':
+            {'repourl':'git://git.yoctoproject.org/eclipse-poky', +             'checkout':False,
+             'branch':'neon-master'}},
         {'meta-qt4':
             {'repourl':'git://git.yoctoproject.org/meta-qt4', 'branch':'master'}},

buildset-config.controller/nightly.conf +0 -0
@@ -103,7 +103,7 @@

                            'nightly-mips64': {}, 'nightly-arm64':
{},
                            'nightly-rpm-non-rpm': {}, 'nightly-deb- non-deb': {}},
                            'schedulerNames_nowait' : {'nightly- uclibc':{}, 'build-appliance': {},
-                           'eclipse-plugin-kepler': {}, 'eclipse- plugin-mars': {},
+                           'eclipse-plugin-neon': {}, 'eclipse- plugin-mars': {},
                            'eclipse-plugin-luna': {}, 'nightly-non- gpl3': {},
                            'nightly-oecore': {}, 'nightly- world':{},'nightly-wic':{},
                            'nightly-world-lsb':{}, 'nightly-intel- gpl': {},

buildset- renamed from buildset-config.controller/yoctoAB.conf +0 -0

config.controller/yoctoAB.conf
index 0f9ba0c..fe9750b 100644

buildset-config.controller/yoctoAB.conf +0 -0
@@ -1,6 +1,6 @@

 [BuildSets]

buildset-config.controller/yoctoAB.conf +2 -2
-order: ['nightly', 'eclipse-plugin-mars', 
-        'eclipse-plugin-kepler', 'eclipse-plugin-luna',
+order: ['nightly', 'eclipse-plugin-neon', 'eclipse-plugin-mars', 
+        'eclipse-plugin-luna',

         'nightly-arm', 'nightly-arm64', 'nightly-arm-lsb', 'nightly-mips', 'nightly-mips64', 'nightly-mips-lsb', 'nightly-ppc', 'nightly-ppc-lsb', 'nightly-no-x11',

(quoted diff) +0 -0

packages/autobuilder/buildsteps/PublishArtifacts.py b/lib/python2.7/site- packages/autobuilder/buildsteps/PublishArtifacts.py index 1a938fc..d8b554f 100644
--- a/lib/python2.7/site- packages/autobuilder/buildsteps/PublishArtifacts.py +++ b/lib/python2.7/site- packages/autobuilder/buildsteps/PublishArtifacts.py

buildset-config.controller/yoctoAB.conf +0 -0
@@ -96,10 +96,15 @@ class PublishArtifacts(ShellCommand):

                         command=command+"mv " + adt_dev_dest + "/rootfs/qemux86-64 " + adt_dev_dest + "/rootfs/qemux86_64;" elif "eclipse-plugin" in artifact:
                     artifact_base = artifact.replace("eclipse- plugin-", "")
+                    deploy_dir = os.path.join(os.path.join(self.workerdir, buildername), "build/scripts")
+                    # create md5sums only for the zip files +                    if os.environ.get('GEN_IMG_MD5') == "True":
+                        command += "for x in ls " + deploy_dir + "/*.zip;"
+                        command += "do md5sum $x >> " + "$x.md5sum; done;"
                     command=command+"mkdir -p " + DEST + "/eclipse- plugin/"+ artifact_base +";"
-                    command=command+"cp -R --no-dereference -- preserve=links " + \
-                                     os.path.join(os.path.join(self. workerdir, buildername),
-                                                 "build/scripts/org. *.zip") + \
+                    command=command+"cp --no-dereference -- preserve=links " + \
+                                     os.path.join(deploy_dir, "org.*.zip") + \
+                                     " " + os.path.join(deploy_dir, "org.*.md5sum") + \
                                      " " + DEST + "/eclipse- plugin/"+ artifact_base +";"
                 elif artifact == "build-appliance":
                     command=command+"mkdir -p " + DEST + "/" + BA_PUBLISH_DIR + ";"

buildset-config.controller/eclipse-plugin-neon.conf new file +10 -0
new file mode 100644
index 0000000..0a262d2
@@ -0,0 +1,11 @@
+[eclipse-plugin-neon]
+builders: 'example-worker'
+repos: [{'eclipse-poky-neon':
+            {'repourl':'git://git.yoctoproject.org/eclipse-poky',
+             'branch':'neon-master'}}]
+steps: [{'SetDest':{}},
+        {'CheckOutLayers': {}},
+        {'BuildEclipsePlugin': {'eclipsedir': 'eclipse-poky-neon'}},
+        {'PublishLayerTarballs':{}},
+        {'PublishArtifacts': {'artifacts': ['eclipse-plugin-

neon']}}]
+