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

@@ -302,7 +302,7 @@ private String inferProjectName(Script script, String buildTool, String buildToo
}
private checkBuildTool(String buildTool, String buildDescriptorPattern) {
if (buildDescriptorPattern && !findFiles(glob: buildDescriptorPattern)) {
if (buildTool != "mta" && !findFiles(glob: buildDescriptorPattern)) {
error "[${STEP_NAME}] buildTool configuration '${buildTool}' does not fit to your project (buildDescriptorPattern: '${buildDescriptorPattern}'), please set buildTool as general setting in your .pipeline/config.yml correctly, see also https://sap.github.io/jenkins-library/configuration/"
}
}