Single-Project Jobs using WOJenkins

Last modified by Bastian Triller on 2012/08/24 19:57

Single-Project jobs are ones that build a single WebObjects Framework or Application. Any frameworks that are depended on by a single-project job must be either already built and installed in the JENKINS_HOME/WOFrameworksRepository (i.e., WebObjects and Project Wonder frameworks) or can be other Jenkins jobs with the same name, e.g., a dependency on MyFramework.framework can be satisfied by a Jenkins job named MyFramework.

WOJenkins

WOJenkins is a set of shell scripts and Jenkins job configurations developed specifically to make it easy to build WebObjects projects with Jenkins.

Building a WebObjects Framework or Application

Warning

Prerequisites

To make use of WOJenkins, you will need all of the following:

1. A running Jenkins server. Ideally setup and configured using the [[doc:documentation.Home.Deployment.Using Jenkins Build Server with WebObjects Projects.Installing and Configuring Jenkins.WebHome]] instructions.
1. [[Git SCM installed>>url:http://wiki.wocommunity.org/display/WO/Getting+Started+with+Git||shape="rect"]] on the Jenkins server.
1. The Jenkins [[Git Plugin>>url:https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin||shape="rect"]] installed
1. The Jenkins [[Multiple SCMs Plugin>>url:https://wiki.jenkins-ci.org/display/JENKINS/Multiple+SCMs+Plugin||shape="rect"]] installed
1. The requested version of WebObjects and Wonder frameworks installed using the WOJenkins job configuration described by the [[doc:documentation.Home.Deployment.Using Jenkins Build Server with WebObjects Projects.Installing WebObjects and Wonder for Jenkins using WOJenkins.WebHome]] page.

  1. Change directories into JENKINS_HOME/jobs 
  2. cd /Users/Shared/Jenkins/Home/jobs/Clone job configuration from github.com repository
    • If your project is in a Git repository: 
    • sudo git clone https://github.com/avendasora/WOJenkins_Job_WOProject_Git.git My_WebObjects_ProjectIf your project is in a SVN repository: 
  3. git clone https://github.com/avendasora/WOJenkins_Job_WOProject_SVN.git My_WebObjects_ProjectSet correct ownership and permissions - If you used the Mac OSX Jenkins installer, the user and group that it will be using are both "jenkins" 
  4. sudo chown -R jenkins:jenkins My_WebObjects_Project/Open Jenkins and tell it to reload the configuration files so it will see the new job.
    • From within Jenkins user interface, navigate to: Jenkins -> Manage Jenkins -> Reload Configuration from Disk
    • Call the reload URL: http://localhost:8080/reload - this link should work for a default install if you haven't turned on any security.
  5. Open the new Job.
     You should see a new job called My_WebObjects_Project.
Warning

If you don't see the job then verify that the jenkins (for OS X) orĀ {{code language="none"}}daemon (for Linux){{/code}} user has read-write privileges on both the {{code language="none"}}JENKINS_HOME/jobs/My_WebObjects_Project{{/code}} directory and the {{code language="none"}}config.xml{{/code}} file and reload the configuration from disk again.