1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +02:00

replaced mta.jar with DEFAULT_MTA_JAR_NAME

This commit is contained in:
Willenbacher 2018-02-23 13:33:14 +01:00 committed by Marcus Holl
parent d4c4f864fc
commit 93a2f028cd

View File

@ -72,13 +72,13 @@ private getMtaJar(stepName, configuration) {
def mtaJarLocation = DEFAULT_MTA_JAR_NAME //default, maybe it is in current working directory def mtaJarLocation = DEFAULT_MTA_JAR_NAME //default, maybe it is in current working directory
if(configuration?.mtaJarLocation){ if(configuration?.mtaJarLocation){
mtaJarLocation = "${configuration.mtaJarLocation}/mta.jar" mtaJarLocation = "${configuration.mtaJarLocation}/${DEFAULT_MTA_JAR_NAME}"
echo "[$stepName] MTA JAR \"${mtaJarLocation}\" retrieved from configuration." echo "[$stepName] MTA JAR \"${mtaJarLocation}\" retrieved from configuration."
return mtaJarLocation return mtaJarLocation
} }
if(env?.MTA_JAR_LOCATION){ if(env?.MTA_JAR_LOCATION){
mtaJarLocation = "${env.MTA_JAR_LOCATION}/mta.jar" mtaJarLocation = "${env.MTA_JAR_LOCATION}/${DEFAULT_MTA_JAR_NAME}"
echo "[$stepName] MTA JAR \"${mtaJarLocation}\" retrieved from environment." echo "[$stepName] MTA JAR \"${mtaJarLocation}\" retrieved from environment."
return mtaJarLocation return mtaJarLocation
} }