Details
-
Type:
Sub-task
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:
-
Story Points:1.5
-
Sprint:Summer 2019 Sprint 8, Summer 2019 Sprint 9, Summer 2019 Sprint 10, Summer 2019 Sprint 11
Description
Investigate and develop proof-of-concept for a bitbucket pipeline configuration that will allow Apps to be built automatically when a user pushes to their remote.
Requirements:
- The pipeline should create the App jar file and also an OBR index for the app.
- The pipeline should copy the App jar and OBR index file named repository.xml to the downloads directory of the repository for that App.
Investigate:
- Can the OBR index file provide an absolute URL to the jar file hosted in the Bitbucket repository's download section? If yes, let's do this for the bitbucket pipelines build to enable testing.
- Can a developer indicate the URL for the downloads section? If yes, then during testing we could add this location as a test App repository location.
Attachments
Issue Links
- blocks
-
IGBF-1828 Assist devs to set up bb pipelines for Apps
-
- Closed
-
Done with the creation of JAR file as well as the OBR index for the app. Setup pipeline to copy both the files to downloads section of the bitbucket.
Now investigating on how we can provide a URL of the bitbucket repository's download section directly to the app manager in IGB for testing.
Following exception thrown when we check on the downloads repository path from IGB's app manager :
10:53:12.286 ERROR o.l.i.p.m.RepositoryInfoManager - Expected element 'repository' at the root of the document
java.lang.Exception: Expected element 'repository' at the root of the document
at org.apache.felix.bundlerepository.impl.PullParser.parseRepository(PullParser.java:50) ~[na:na]
at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:168) ~[na:na]
at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.repository(DataModelHelperImpl.java:141) ~[na:na]
at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl$1.run(RepositoryAdminImpl.java:114) ~[na:na]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_101]
at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:110) ~[na:na]
at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.addRepository(RepositoryAdminImpl.java:98) ~[na:na]
at org.lorainelab.igb.plugin.manager.RepositoryInfoManager$1.runInBackground(RepositoryInfoManager.java:59) [plugins-manager-9.1.0.jar:na]
at org.lorainelab.igb.plugin.manager.RepositoryInfoManager$1.runInBackground(RepositoryInfoManager.java:55) [plugins-manager-9.1.0.jar:na]
at com.affymetrix.genometry.thread.CThreadWorker.doInBackground(CThreadWorker.java:73) [genometry-9.1.0.jar:na]
at javax.swing.SwingWorker$1.call(SwingWorker.java:295) [na:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]
at javax.swing.SwingWorker.run(SwingWorker.java:334) [na:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
Debugging for the same.