mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2025-02-12 14:57:15 +02:00
Формат EDT блокирует возможность инициализации ИБ из хранилища (#51)
Co-authored-by: kuzja086 <kozs@tlink.ru>
This commit is contained in:
parent
13e04b994f
commit
6ffb938258
@ -17,7 +17,7 @@
|
||||
},
|
||||
"defaultBranch" : {
|
||||
"type" : "string",
|
||||
"description" : "Имя ветки по умолчанию"
|
||||
"description" : "Имя ветки по умолчанию. Значение по умолчанию - main."
|
||||
},
|
||||
"secrets" : {
|
||||
"type" : "object",
|
||||
|
@ -78,8 +78,7 @@ class JobConfiguration implements Serializable {
|
||||
String branchName = env.BRANCH_NAME;
|
||||
def initMethod = initInfobaseOptions.initMethod
|
||||
|
||||
return sourceFormat == SourceFormat.EDT ||
|
||||
(initMethod == InitInfobaseMethod.FROM_SOURCE) ||
|
||||
return (initMethod == InitInfobaseMethod.FROM_SOURCE) ||
|
||||
(initMethod == InitInfobaseMethod.DEFAULT_BRANCH_FROM_STORAGE && branchName != defaultBranch)
|
||||
}
|
||||
}
|
@ -56,7 +56,7 @@ void call() {
|
||||
}
|
||||
when {
|
||||
beforeAgent true
|
||||
expression { config.stageFlags.needInfobase() && config.sourceFormat == SourceFormat.EDT }
|
||||
expression { config.stageFlags.needInfobase() && config.infobaseFromFiles() && config.sourceFormat == SourceFormat.EDT }
|
||||
}
|
||||
steps {
|
||||
edtToDesignerFormatTransformation config
|
||||
|
Loading…
x
Reference in New Issue
Block a user