github jenkinsci/JenkinsPipelineUnit v1.15
1.15

latest releases: v1.21, v1.20, v1.19...
2 years ago

⚠️ 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

Don't miss a new JenkinsPipelineUnit release

NewReleases is sending notifications on new releases.