1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

Fix mta buildtool error (#4243)

* Fix indentation

* Fix type

* Exclude mta build tool from throwing error

* Update log message

* Add test case
This commit is contained in:
Srinikitha Kondreddy
2023-02-24 11:09:42 +01:00
committed by GitHub
parent 7e7182d3fe
commit 1536362a50
3 changed files with 17 additions and 5 deletions

View File

@@ -127,6 +127,18 @@ class PiperPipelineStageInitTest extends BasePiperTest {
)
}
@Test
void testInitMtaBuildToolDoesNotThrowException() {
jsr.step.piperPipelineStageInit(
script: nullScript,
juStabUtils: utils,
buildTool: 'mta',
stashSettings: 'com.sap.piper/pipeline/stashSettings.yml'
)
assertThat(stepsCalled, hasItems('checkout', 'setupCommonPipelineEnvironment', 'piperInitRunStageConfiguration', 'artifactPrepareVersion', 'pipelineStashFilesBeforeBuild'))
}
@Test
void testInitDefault() {