Skip to content

Commit

Permalink
Merge pull request #116 from Segate-ekb/develop
Browse files Browse the repository at this point in the history
Инициализация БД и загрузка расширений
  • Loading branch information
nixel2007 authored May 6, 2024
2 parents 7f6070d + d11ff1b commit f60feb2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pipeline1C()
## Внешний вид пайплайна в интерфейсе Blue Ocean

![image](https://github.com/firstBitMarksistskaya/jenkins-lib/assets/80944823/e34a0112-2fe5-4116-92ac-8fcca08bba43)
![image](https://github.com/firstBitMarksistskaya/jenkins-lib/assets/80944823/a8d5bdff-3267-4744-a613-8c3d445b767f)

## Конфигурирование

Expand Down
19 changes: 10 additions & 9 deletions vars/pipeline1C.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -106,31 +106,32 @@ void call() {
}
}

stage('Инициализация ИБ') {
stage('Загрузка расширений в конфигурацию'){
when {
beforeAgent true
expression { config.stageFlags.initSteps }
expression { config.needLoadExtensions() }
}
steps {
timeout(time: config.timeoutOptions.initInfoBase, unit: TimeUnit.MINUTES) {
// Инициализация и первичная миграция
initInfobase config
timeout(time: config.timeoutOptions.loadExtensions, unit: TimeUnit.MINUTES) {
loadExtensions config
}
}
}

stage('Загрузка расширений в конфигурацию'){
stage('Инициализация ИБ') {
when {
beforeAgent true
expression { config.needLoadExtensions() }
expression { config.stageFlags.initSteps }
}
steps {
timeout(time: config.timeoutOptions.loadExtensions, unit: TimeUnit.MINUTES) {
loadExtensions config
timeout(time: config.timeoutOptions.initInfoBase, unit: TimeUnit.MINUTES) {
// Инициализация и первичная миграция
initInfobase config
}
}
}


stage('Архивация ИБ') {
steps {
timeout(time: config.timeoutOptions.zipInfoBase, unit: TimeUnit.MINUTES) {
Expand Down

0 comments on commit f60feb2

Please sign in to comment.