Coder Social home page Coder Social logo

hudsongen's Introduction

HudsonGen

This project generates most of the Hudson configuration files for the FuseSource open source projects using the Scalate template engine.

If you want to automatically create your Hudson configuration files for each of your projects using templates you might want to fork and adapt this project.

Note that you can always have custom Hudson builds outside of the configurations that this tool generates; this tool aims to just auto-generate the common builds for your projects where the CI builds are very similar across individual projects or to reuse the same builds on different branches on the same project etc.

Prerequisites

This build requires you install Simple Build Tool then type the following

sbt update

Generating the configurations

To generate the configuration files type the following into a console

sbt 
run someDir

Where someDir is the directory name where you want the Hudson configuration files generated.

Once you are happy with the look of your XML configuration files, you can run the HudsonGen build as a CI build on your Hudson machine.

For example our CI build for the HudsonGen project looks like this (so Hudson reloads itself after a new build)

/opt/sbt-0.7.4/sbt update
/opt/sbt-0.7.4/sbt run /var/lib/hudson/jobs
/var/lib/hudson/reload

How it works

You define all the various projects from github or FuseForge in the Main.scala file which defines all the metadata for your builds.

The actual implementation detail of using Scalate templates is all done in Helper.scala and the templates are here.

For further details see Scalate Templates

hudsongen's People

Contributors

chirino avatar davsclaus avatar dejanb avatar ffang avatar gertv avatar gnodet avatar jstrachan avatar willemjiang avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.