Skip to content

Commit

Permalink
Merge pull request #5 from abdulrahim458/FISH-8591-configure-jenkins-…
Browse files Browse the repository at this point in the history
…Payara5

FISH-8591 Payara5 Jenkins Config
  • Loading branch information
abdulrahim458 authored May 27, 2024
2 parents c36e5d8 + b54aeac commit ede6bf8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!groovy

pipeline {

agent {
label 'general-purpose'
}
tools {
jdk "zulu-8"
maven "maven-3.6.3"
}
environment {
JAVA_HOME = tool("zulu-8")
MAVEN_OPTS = '-Xmx2G -Djavax.net.ssl.trustStore=${JAVA_HOME}/jre/lib/security/cacerts'
payaraBuildNumber = "${BUILD_NUMBER}"
}
stages {

stage('Checkout Payara5 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/AutoScale-Groups.git"]]]
}
}
}
stage('Build') {
steps {
script {
echo '*#*#*#*#*#*#*#*#*#*#*#*# Building SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
sh """mvn -B -V -ff -e clean install --strict-checksums \
-Djavadoc.skip -Dsource.skip"""
echo '*#*#*#*#*#*#*#*#*#*#*#*# Built SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
}
}
}
}
}

0 comments on commit ede6bf8

Please sign in to comment.