1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-01-07 13:23:36 +02:00

Merge pull request #107 from ivanmolodec/file-exist-bug

This commit is contained in:
Nikita Fedkin 2024-02-13 17:43:26 +01:00 committed by GitHub
commit 3a1c9fb80c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View File

@ -20,7 +20,7 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: check
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Execute Gradle build
run: ./gradlew check

View File

@ -110,5 +110,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

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