2020-04-04 10:55:37 +02:00
|
|
|
import ru.pulsar.jenkins.library.configuration.JobConfiguration
|
2021-11-01 12:20:18 +02:00
|
|
|
import ru.pulsar.jenkins.library.utils.VRunner
|
2020-04-15 12:43:01 +02:00
|
|
|
import ru.pulsar.jenkins.library.utils.VersionParser
|
|
|
|
|
|
|
|
def call(JobConfiguration jobConfiguration) {
|
|
|
|
|
2021-11-01 16:45:57 +02:00
|
|
|
printLocation()
|
|
|
|
|
|
|
|
installLocalDependencies();
|
|
|
|
|
2020-04-15 12:43:01 +02:00
|
|
|
def storageVersion = VersionParser.storage()
|
|
|
|
def storageVersionParameter = storageVersion == "" ? "" : "--storage-ver $storageVersion"
|
2020-04-04 10:55:37 +02:00
|
|
|
|
|
|
|
withCredentials([
|
|
|
|
usernamePassword(
|
|
|
|
credentialsId: jobConfiguration.secrets.storage,
|
|
|
|
passwordVariable: 'STORAGE_PSW',
|
|
|
|
usernameVariable: 'STORAGE_USR'
|
|
|
|
),
|
|
|
|
string(
|
|
|
|
credentialsId: jobConfiguration.secrets.storagePath,
|
|
|
|
variable: 'STORAGE_PATH'
|
|
|
|
)
|
|
|
|
]) {
|
2021-11-01 12:20:18 +02:00
|
|
|
String vrunnerPath = VRunner.getVRunnerPath();
|
|
|
|
cmd "$vrunnerPath init-dev --storage --storage-name $STORAGE_PATH --storage-user $STORAGE_USR --storage-pwd $STORAGE_PSW $storageVersionParameter --ibconnection \"/F./build/ib\""
|
2020-04-04 10:55:37 +02:00
|
|
|
}
|
|
|
|
}
|