Skip to content

Commit

Permalink
Добавлена проверка на существование файла 1Cv8.1CD.zip, удален дубль …
Browse files Browse the repository at this point in the history
…создания папки build/out
  • Loading branch information
Ivan Smirnov committed Feb 13, 2024
1 parent 8aac6e0 commit bd943e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,6 @@ sharedLibrary {
dependency("org.jenkinsci.plugins", "pipeline-model-definition", declarativePluginsVersion)
dependency("org.jenkinsci.plugins", "pipeline-model-extensions", declarativePluginsVersion)
dependency("io.jenkins.blueocean", "blueocean-pipeline-api-impl", "1.25.3")
dependency("sp.sd", "file-operations", "214.v2e7dc7f25757")
}
}
1 change: 0 additions & 1 deletion vars/pipeline1C.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ void call() {
stage('Создание ИБ') {
steps {
timeout(time: config.timeoutOptions.createInfoBase, unit: TimeUnit.MINUTES) {
createDir('build/out')

script {
if (config.infoBaseFromFiles()) {
Expand Down
3 changes: 3 additions & 0 deletions vars/zipInfobase.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
def call() {
if (fileExists('1Cv8.1CD.zip')) {
fileOperations([fileDeleteOperation(includes: '1Cv8.1CD.zip')])
}
zip dir: 'build/ib', glob: '1Cv8.1CD', zipFile: '1Cv8.1CD.zip'
stash name: "1Cv8.1CD.zip", includes: "1Cv8.1CD.zip", allowEmpty: false
}

0 comments on commit bd943e9

Please sign in to comment.