1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-11-30 09:46:41 +02:00

Добавлена проверка на существование файла 1Cv8.1CD.zip, удален дубль создания папки build/out

This commit is contained in:
Ivan Smirnov 2024-02-13 15:07:44 +03:00
parent 8aac6e00d8
commit bd943e9bcc
3 changed files with 4 additions and 1 deletions

View File

@ -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")
}
}

View File

@ -79,7 +79,6 @@ void call() {
stage('Создание ИБ') {
steps {
timeout(time: config.timeoutOptions.createInfoBase, unit: TimeUnit.MINUTES) {
createDir('build/out')
script {
if (config.infoBaseFromFiles()) {

View File

@ -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
}