Skip to content

1.14

Compare
Choose a tag to compare
@release-drafter release-drafter released this 21 Feb 16:20
· 328 commits to master since this release
21e1113

⚠️ Breaking API changes

  • Fix sh default output (#483) @UlrichEckhardt. Specifically, the default output of the sh mock was removed. Formerly, the sh mock would return either abcd123\n for git rev-parse HEAD or \nbbb\nccc\n in all other cases (and a similar output for bat). If your tests relied on this behavior, you must now register proper output for sh commands like so:
@Test
void testGit() {
    helper.addShMock("git rev-parse HEAD", "\nbbb\nccc\n", 0)
    def result = script.sh(script: "git rev-parse HEAD", returnStdout: true)
    assertEquals("\nbbb\nccc\n", result)
}

Please see the documentation for mocking sh for more information.

  • The PipelineTestHelper.mockScriptOutputs field was renamed to PipelineTestHelper.mockShOutputs, in order to accommodate the new PipelineTestHelper.mockBatOutputs field. If your tests called helper.mockScriptOutputs, you can simply rename these usages to helper.mockShOutputs.

🐛 Bug fixes

🚀 New features and improvements

📦 Dependency updates