Skip to content

1.15

Compare
Choose a tag to compare
@release-drafter release-drafter released this 15 Jul 09:11
· 215 commits to refs/heads/master since this release

⚠️ Breaking API changes

  • Make params map immutable (#542) @nre-ableton. If your code was (incorrectly) modifying values in params, you'll now get an exception when trying to do this. This won't work on a real Jenkins server, and now it won't work in this framework either. To modify the params map, you must use addParams.
  • mockShOutputs has been renamed to mockShHandlers (see below, #498).

🚀 New features and improvements

  • script handlers using patterns (#498) @UlrichEckhardt. Previously, helper.addShMock took a String as the first argument for an exact command to match. This method now can take a Pattern to match a regular expression, a String for an exact match (the same behavior as before), or no argument to match anything.

Some examples:

@Test
void testWhatever() {
    helper.addShMock(~/echo\s(.*)/, 'mock-output', 0)
    helper.addShMock('echo "hello, world"', 'mock-output', 0)
    helper.addShMock('default-mock-output', 0)
}

🐛 Bug fixes

  • Fix for shared lib and params variables being null in environment section (#529) @tomek-d
  • bugfix(declarative): Stage with any 2 of parallel, steps, matrix, stages should throw error (#506) @stchar

✍ Other changes

📦 Dependency updates