All Projects → man-group → jenkins-blueprint-plugin

man-group / jenkins-blueprint-plugin

Licence: MIT license
Build Jenkins projects according to a .jenkins.yml file in the repository.

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects

Jenkins Blueprint

Build Status

Build Jenkins projects according to a .jenkins.yml file in the repository. Inspired by Travis CI.

MIT license, see COPYING.

See also the workflow plugin.

Developing

You will need to generate a .hpi file.

# on our artifactory this may require running several times.
$ mvn package

Next, download jenkins.jar from http://jenkins-ci.org/ and run it:

$ java -jar jenkins.war

Copy your new plugin into your dev Jenkins instance:

$ cp target/blueprint.hpi ~/.jenkins/plugins/

Installing

Visit the Plugin Manager in your Jenkins instance (e.g. http://example.com/pluginManager/advanced) and upload the blueprint.hpi file.

Usage

Add a build step to your job 'Build according to .jenkins.yml'.

Then, check in a .jenkins.yml file with build instructions. For example, for a C project, your file might look like this:

script:
  - make
  - make test

For more elaborate build steps, use a multi-line YAML string:

script:
  - |
    if [[ ! "$GIT_BRANCH" =~ "master" ]]; then
      echo "On a feature branch!"
    else
      echo "On master!"
    fi

When your build runs, you will end up with something like this:

screenshot

Known Limitations

Blueprint doesn't work with injecting environment variables.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].