Jenkins : Yaml Axis Plugin

Summary

Matrix project axis creation and exclusion plugin using yaml file (It's similar to .travis.yml)

Plugin Information

View Yaml Axis on the plugin site for more information.

Older versions of this plugin may not be safe to use. Please review the following warnings before using an older version:

Table of content

Usage

1. Add yaml file to repository

example

# axis.yml
RUBY_VERSION:
  - 2.1.8
  - 2.2.4
  - 2.3.0

exclude:
  - RUBY_VERSION: 2.1.8
  - RUBY_VERSION: 2.3.0
    DATABASE: oracle

2. Create Multi-configuration project

3. Configuration Matrix

Choose Yaml Axis

Input configurations

  • Axis yaml file : Yaml file path (relative path from workspace or absolute path)
  • Axis name : Top key in yaml file

You can combine Yaml Axis and other axes

4. Configuration Execution Strategy

Choose "Yaml matrix execution strategy" at Execution Strategy

If you don't want to exclusion, choose *Classic*

Input settings
Example 1 (Use yaml file)

Example 2 (Use yaml text)

4. Build job

Generate yaml based matrix and run job

  • blue is executed job
  • gray is excluded(skipped) job

Changelog

Details https://github.com/jenkinsci/yaml-axis-plugin/blob/master/CHANGELOG.md

Version 0.2.0

Version 0.1.2

Version 0.1.1

  • Suppress error
  • a few refactoring

Version 0.1.0

  • First release

Attachments:

add_axis.png (image/png)
config.png (image/png)
matrix.png (image/png)
new_job.png (image/png)
yaml_file.png (image/png)
yaml_text.png (image/png)
result.png (image/png)
axis_config.png (image/png)
execution_strategy.png (image/png)