From 34c9e62230ef4d82de1919291fc45cccce269974 Mon Sep 17 00:00:00 2001 From: Abdul Rahim Date: Thu, 27 Jun 2024 18:16:36 +0530 Subject: [PATCH 1/2] FISH-8589 FISH-8593 add jenkins and dependabot config --- .github/dependabot.yml | 14 ++++++++++++++ Jenkinsfile | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 Jenkinsfile diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..647fea3 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +# 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: + # Configuration for Gradle + - package-ecosystem: "gradle" + directory: "/" # Location of package manifests + schedule: + interval: "daily" + open-pull-requests-limit: 5 + target-branch: "master" diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..58a7ead --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,39 @@ +pipeline { + + agent { + label 'general-purpose' + } + tools { + jdk "zulu-8" + gradle "gradle-8.0" + } + environment { + JAVA_HOME = tool("zulu-8") + GRADLE_OPTS = '-Xmx2G -Djavax.net.ssl.trustStore=${JAVA_HOME}/jre/lib/security/cacerts' + payaraBuildNumber = "${BUILD_NUMBER}" + } + stages { + + stage('Checkout master') { + steps { + script { + checkout changelog: false, poll: true, scm: [$class: 'GitSCM', + branches: [[name: "master"]], + doGenerateSubmoduleConfigurations: false, + extensions: [], + submoduleCfg: [], + userRemoteConfigs: [[credentialsId: 'payara-devops-github-personal-access-token-as-username-password', url:"https://github.com/payara/ecosystem-intellij-community-plugin.git"]]] + } + } + } + stage('Build') { + steps { + script { + echo '*#*#*#*#*#*#*#*#*#*#*#*# Building SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#' + sh "./gradlew clean build" + echo '*#*#*#*#*#*#*#*#*#*#*#*# Built SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#' + } + } + } + } +} From 4a50c301c7363370d262f6245c340267efa343f6 Mon Sep 17 00:00:00 2001 From: abdulrahim458 <67860725+abdulrahim458@users.noreply.github.com> Date: Mon, 1 Jul 2024 00:52:32 +0530 Subject: [PATCH 2/2] FISH-8589 Update Jenkinsfile --- Jenkinsfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 58a7ead..0181a1b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,16 +4,16 @@ pipeline { label 'general-purpose' } tools { - jdk "zulu-8" - gradle "gradle-8.0" + jdk "zulu-11" } environment { - JAVA_HOME = tool("zulu-8") - GRADLE_OPTS = '-Xmx2G -Djavax.net.ssl.trustStore=${JAVA_HOME}/jre/lib/security/cacerts' + JAVA_HOME = tool("zulu-11") + GRADLE_HOME = "/usr/lib/gradle/jenkinstools/gradle-8.0" + PATH = "${GRADLE_HOME}/bin:${env.PATH}" + MAVEN_OPTS = '-Xmx2G -Djavax.net.ssl.trustStore=${JAVA_HOME}/jre/lib/security/cacerts' payaraBuildNumber = "${BUILD_NUMBER}" } stages { - stage('Checkout master') { steps { script { @@ -30,10 +30,13 @@ pipeline { steps { script { echo '*#*#*#*#*#*#*#*#*#*#*#*# Building SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#' - sh "./gradlew clean build" + sh ''' + gradle clean build -x check + ''' echo '*#*#*#*#*#*#*#*#*#*#*#*# Built SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#' } } } } } +