Giter VIP home page Giter VIP logo

jarn.jenkins's Introduction

Overview

This is a recipe to set up and configure Jenkins in a Jetty servlet container.

Note

The recipe is currently not compatible with Python 2.7 due to an incompatibility in the iw.recipe.template recipe used internally.

Basic setup

A basic buildout configuration using this recipe looks like this:

[buildout]

parts =
    jetty-download
    jenkins-download
    jenkins

[jetty-download]
recipe = hexagonit.recipe.download
url = http://download.eclipse.org/jetty/7.2.2.v20101205/dist/jetty-distribution-7.2.2.v20101205.tar.gz
strip-top-level-dir = true

[jenkins-download]
recipe = hexagonit.recipe.download
url = http://mirrors.jenkins-ci.org/war/1.397/jenkins.war
download-only = true

[jenkins]
recipe = jarn.jenkins
jetty-location = ${jetty-download:location}
jenkins-location = ${jenkins-download:location}

This will download both Jetty and Jenkins and create an executable Jetty environment in parts/jenkins. It will also create a control script in bin/jenkins. The name of the script is the name of the section.

To test the setup run bin/jenkins fg and check the console output. By default this will run a Jetty server on port 8070. The jenkins instance is accessible in a browser at http://127.0.0.1:8070/jenkins/.

Jenkins will write all its log files into var/jenkins/log. All its configuration including jobs and past runs will go into var/jenkins/data. The directory name in var will have the name of the recipe section.

Options

The recipe supports the following options:

host
Name or IP address of the Jetty server, e.g. some.server.com. Defaults to 127.0.0.1.
port
Server port. Defaults to 8070.
java-opts

Optional. Parameters to pass to the Java Virtual Machine (JVM) used to run Jetty. Each option is specified on a separated line. If you run into memory problems it's typical to pass:

[jenkins]
...
java-opts =
  -Xms512M
  -Xmx1024M
...

Development

The code and issue tracker can be found at: https://github.com/Jarn/jarn.jenkins

jarn.jenkins's People

Contributors

newbery avatar

Stargazers

ichim-david avatar Sean Chen avatar Martijn Pieters avatar  avatar

Watchers

Tormod Mansaker avatar James Cloos avatar

jarn.jenkins's Issues

Problem with Python 2.7

Originally reported via email from Rob Madole:

Using Python 2.7, we are getting a traceback when this recipe goes to create the Jetty config.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
 File "/opt/ci/deployer/eggs/zc.buildout-1.5.1-py2.7.egg/zc/buildout/buildout.py", line 1784, in main
   getattr(buildout, command)(args)
 File "/opt/ci/deployer/eggs/zc.buildout-1.5.1-py2.7.egg/zc/buildout/buildout.py", line 569, in install
   installed_files = self[part]._call(recipe.install)
 File "/opt/ci/deployer/eggs/zc.buildout-1.5.1-py2.7.egg/zc/buildout/buildout.py", line 1276, in _call
   return f()
 File "/opt/ci/deployer/eggs/collective.recipe.hudson-1.0a2-py2.7.egg/collective/recipe/hudson/__init__.py", line 91, in install
   destination=os.path.join(self.part_dir, 'etc'))
 File "/opt/ci/deployer/eggs/collective.recipe.hudson-1.0a2-py2.7.egg/collective/recipe/hudson/__init__.py", line 44, in generate_jetty
   kwargs).install()
 File "/opt/ci/deployer/eggs/iw.recipe.template-0.2-py2.7.egg/iw/recipe/template/__init__.py", line 64, in install
   contents = '%s' % template
 File "/opt/ci/deployer/eggs/Cheetah-2.4.2.1-py2.7-linux-x86_64.egg/Cheetah/Template.py", line 1005, in __str__
   rc = getattr(self, mainMethName)()
TypeError: unbound method respond() must be called with DynamicallyCompiledCheetahTemplate instance as first argument (got nothing instead)

Are you still maintaining this project? I know nothing about Cheetah, but the fix it contents = '%s' % template.respond().

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.