Skip to content

Commit 7f4096c

Browse files
committed
FISH-8589 add jenkins config
1 parent 7f2dcc0 commit 7f4096c

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Jenkinsfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!groovy
2+
3+
pipeline {
4+
5+
agent {
6+
label 'general-purpose'
7+
}
8+
tools {
9+
jdk "zulu-17"
10+
maven "maven-3.6.3"
11+
}
12+
environment {
13+
JAVA_HOME = tool("zulu-17")
14+
MAVEN_OPTS = '-Xmx2G -Djavax.net.ssl.trustStore=${JAVA_HOME}/jre/lib/security/cacerts'
15+
payaraBuildNumber = "${BUILD_NUMBER}"
16+
}
17+
stages {
18+
19+
stage('Checkout Master') {
20+
steps {
21+
script {
22+
checkout changelog: false, poll: true, scm: [$class: 'GitSCM',
23+
branches: [[name: "master"]],
24+
doGenerateSubmoduleConfigurations: false,
25+
extensions: [],
26+
submoduleCfg: [],
27+
userRemoteConfigs: [[credentialsId: 'payara-devops-github-personal-access-token-as-username-password', url:"https://github.com/payara/ecosystem-eclipse-plugin.git"]]]
28+
}
29+
}
30+
}
31+
stage('Build') {
32+
steps {
33+
script {
34+
echo '*#*#*#*#*#*#*#*#*#*#*#*# Building SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
35+
sh """mvn -B -V -ff -e clean install --strict-checksums \
36+
-Djavadoc.skip -Dsource.skip"""
37+
echo '*#*#*#*#*#*#*#*#*#*#*#*# Built SRC *#*#*#*#*#*#*#*#*#*#*#*#*#*#*#'
38+
}
39+
}
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)