Jenkins Job Builder 6.0.0 is now available

74 views
Skip to first unread message

Vsevolod Fedorov

unread,
Jan 25, 2024, 5:35:25 AMJan 25
to jenkins-job-builder

Hi Everyone,

Jenkins Job Builder 6.0.0 is released.

There are breaking changes since previous 5.1.0 release:

  • Jobs are now expanded the same way as job templates;
  • Macros without parameters are now expanded the same way as macros with parameters;
  • Tags !include-raw: and !include-raw-escape: should now be used the same way in jobs and macros without parameters as they are used in job templates and macros with parameters.

See also these stories:

  • Expand jobs the same way as job templates are expanded (Story 2010963);
  • Expand macros even if called without arguments (Story 2010588).

To move to 6.0.0 release, make these adjustments to your JJB sources:

For every job and macro without parameters:
  • Duplicate curly braces: {...} -> {{...}};
  • Replace tags !include-raw: -> !include-raw-escape:
See this example: job-and-macro-expansions.yaml

Also, global defaults are now used when expanding job elements the same way as they are used for expanding job templates.
See this example:
concat_defaults003_job.yaml
concat_defaults003_job.xml

Commit list:

b669001e Vsevolod Fedorov       Merge global defaults for jobs also
18efe506 Vsevolod Fedorov       Unify variable and tags expansion inside jobs and macros
081fcaa0 Vsevolod Fedorov       Add example for variable expansion inside macros and jobs

Vsevolod.

Reply all
Reply to author
Forward
0 new messages