Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Lyo/JenkinsPlugin

< Lyo
Revision as of 09:44, 15 December 2014 by Sspeiche.us.ibm.com (Talk | contribs)

The Lyo project has an OSLC 2.0 Automation provider that works with Hudson and Jenkins CI. It's currently a sample, although we plan to evolve it into a complete OSLC Automation implementation. The provider currently supports

  • Service Discovery
  • Creation Factories
    • AutomationRequest (Schedule Build)
  • Query Capabilities (oslc.where subset)
    • AutomationPlan (Job)
    • AutomationResult (Run)
  • Dialogs:
    • Select AutomationPlan (Job)
  • UI Preview:
    • AutomationPlan (Job)
    • AutomationResult (Run)
  • Basic Access Authentication

In parallel, we're investigating writing an OSLC Automation consumer for Hudson and Jenkins. This would allow you to make automation requests to other servers as a build step, even scheduling builds on other Jenkins servers using OSLC Automation.

Prerequisites

Getting the Code

The plugin is meant to work with both Hudson and Jenkins. For now, we have development ongoing in two different Git branches because of differences in the Hudson and Jenkins API and development environment.

  • Branch: master - Hudson plugin
  • Branch: jenkins - Jenkins plugin

Clone the Lyo Server Git repository

  • Open the Git Repositories view in Eclipse and click the Clone Git Repository icon
  • Use git://git.eclipse.org/gitroot/lyo/org.eclipse.lyo.server.git as the URI (browse it also on line). User/Password are not required.
  • On the Branch Selection page, select the master branch for Hudson or the jenkins branch for Jenkins
  • On the Local Destination page, specify a location or accept the default and click Finish

Import Eclipse projects from the Git repositories

  • In the Git Repositories view, right click org.eclipse.lyo.docs and select Import Projects
  • Select the Import Existing Projects wizard and click Next
  • Import org.eclipse.lyo.samples.hudson or org.eclipse.Lyo.samples.jenkins

Building and Running

Follow the guide here to build and run. (Skip any steps on creating a new plugin project since you'll use ours.) Briefly, you'll want to

  • Edit ~/.m2/settings.xml as instructed in the link above
  • Use mvn install to build
  • Use mvn hpi:run to run

The OSLC Automation endpoint is

http://localhost:8080/auto/provider (Hudson) or http://localhost:8080/jenkins/auto/provider (Jenkins)

Back to the top