You've already forked jenkins-lib
mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2025-08-25 20:09:25 +02:00
Убрал closure, заменил на отдельный общий шаг для обновления из хранилища
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import ru.pulsar.jenkins.library.configuration.JobConfiguration
|
||||
|
||||
def <T extends Closure> void call(JobConfiguration jobConfiguration, T body) {
|
||||
def call(JobConfiguration jobConfiguration, String storageVersion) {
|
||||
withCredentials([
|
||||
usernamePassword(
|
||||
credentialsId: jobConfiguration.secrets.storage,
|
||||
@@ -12,6 +12,6 @@ def <T extends Closure> void call(JobConfiguration jobConfiguration, T body) {
|
||||
variable: 'STORAGE_PATH'
|
||||
)
|
||||
]) {
|
||||
body()
|
||||
cmd "oscript_modules/bin/vrunner init-dev --storage --storage-name $STORAGE_PATH --storage-user $STORAGE_USR --storage-pwd $STORAGE_PSW --storage-ver $storageVersion --ibconnection \"/F./build/ib\""
|
||||
}
|
||||
}
|
@@ -60,11 +60,10 @@ void call() {
|
||||
def storageVersion = versionParser.storage()
|
||||
|
||||
// Создание базы загрузкой конфигурации из хранилища
|
||||
withStorageCredentials(jobConfiguration) {
|
||||
cmd "oscript_modules/bin/vrunner init-dev --storage --storage-name $STORAGE_PATH --storage-user $STORAGE_USR --storage-pwd $STORAGE_PSW --storage-ver $storageVersion --ibconnection \"/F./build/ib\""
|
||||
}
|
||||
initFromStorage(jobConfiguration, storageVersion)
|
||||
}
|
||||
|
||||
|
||||
zipInfobase()
|
||||
}
|
||||
}
|
||||
@@ -101,4 +100,5 @@ void call() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user