diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..0d08e261 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "github-actions" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e94b5496..1c1e5550 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -14,13 +14,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 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 diff --git a/build.gradle.kts b/build.gradle.kts index 7b6e22dd..2de8c201 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,6 +9,10 @@ plugins { id("org.jenkins-ci.jpi") version "0.38.0" apply false } +repositories { + mavenCentral() +} + tasks { register("resolveIntegrationTestDependencies") { @@ -106,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") } } diff --git a/vars/zipInfobase.groovy b/vars/zipInfobase.groovy index 74004bb5..14bc94ae 100644 --- a/vars/zipInfobase.groovy +++ b/vars/zipInfobase.groovy @@ -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 }