2020-04-04 11:55:37 +03:00
|
|
|
import ru.pulsar.jenkins.library.configuration.JobConfiguration
|
2020-04-15 13:43:01 +03:00
|
|
|
import ru.pulsar.jenkins.library.utils.VersionParser
|
|
|
|
|
|
|
|
def call(JobConfiguration jobConfiguration) {
|
|
|
|
|
|
|
|
def storageVersion = VersionParser.storage()
|
|
|
|
def storageVersionParameter = storageVersion == "" ? "" : "--storage-ver $storageVersion"
|
2020-04-04 11:55:37 +03:00
|
|
|
|
|
|
|
withCredentials([
|
|
|
|
usernamePassword(
|
|
|
|
credentialsId: jobConfiguration.secrets.storage,
|
|
|
|
passwordVariable: 'STORAGE_PSW',
|
|
|
|
usernameVariable: 'STORAGE_USR'
|
|
|
|
),
|
|
|
|
string(
|
|
|
|
credentialsId: jobConfiguration.secrets.storagePath,
|
|
|
|
variable: 'STORAGE_PATH'
|
|
|
|
)
|
|
|
|
]) {
|
2020-04-15 13:43:01 +03:00
|
|
|
cmd "oscript_modules/bin/vrunner init-dev --storage --storage-name $STORAGE_PATH --storage-user $STORAGE_USR --storage-pwd $STORAGE_PSW $storageVersionParameter --ibconnection \"/F./build/ib\""
|
2020-04-04 11:55:37 +03:00
|
|
|
}
|
|
|
|
}
|