1
0

revert static

This commit is contained in:
Dima
2024-03-19 17:08:18 +03:00
parent a2ff504393
commit fef2c1a8f9

View File

@@ -62,7 +62,7 @@ class LoadExtensions implements Serializable {
loadCommand += executeParameter loadCommand += executeParameter
loadCommand += ' --ibconnection "/F./build/ib"' loadCommand += ' --ibconnection "/F./build/ib"'
String vrunnerSettings = getVrunnerSettings() String vrunnerSettings = getVrunnerSettings(this.config, this.stageName)
if (steps.fileExists(vrunnerSettings)) { if (steps.fileExists(vrunnerSettings)) {
loadCommand += " --settings $vrunnerSettings" loadCommand += " --settings $vrunnerSettings"
} }
@@ -73,15 +73,15 @@ class LoadExtensions implements Serializable {
} }
} }
private static String getVrunnerSettings() { private static String getVrunnerSettings(JobConfiguration config, String stageName) {
if (!this.stageName) { if (!stageName) {
return "" return ""
} }
String optionsName = "${this.stageName.toLowerCase()}Options" String optionsName = "${stageName.toLowerCase()}Options"
def optionsInstance = this.config."$optionsName" def optionsInstance = config."$optionsName"
if (optionsInstance) { if (optionsInstance) {
return optionsInstance."vrunnerSettings" return optionsInstance."vrunnerSettings"