Skip to content

Commit

Permalink
Merge pull request #4816 from senivam/ci_jenkins
Browse files Browse the repository at this point in the history
CI env for Jenkins
  • Loading branch information
senivam authored Jul 1, 2021
2 parents 8502286 + 93bc8e9 commit f8ed0de
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 5 deletions.
46 changes: 46 additions & 0 deletions etc/jenkins/Jenkinsfile_ci_build
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pipeline {
agent none

stages {
stage('Jersey build') {
parallel {
stage('JDK 8 ') {
agent any
tools {
jdk 'oracle-jdk8-latest'
maven 'apache-maven-latest'
}
steps {
sh '''
bash ${WORKSPACE}/etc/jenkins/jenkins_build.sh
'''
}
}
stage('JDK 11 ') {
agent any
tools {
jdk 'openjdk-jdk11-latest'
maven 'apache-maven-latest'
}
steps {
sh '''
bash ${WORKSPACE}/etc/jenkins/jenkins_build.sh
'''
}
}
stage('JDK 16 ') {
agent any
tools {
jdk 'openjdk-jdk16-latest'
maven 'apache-maven-latest'
}
steps {
sh '''
bash ${WORKSPACE}/etc/jenkins/jenkins_build.sh
'''
}
}
}
}
}
}
3 changes: 3 additions & 0 deletions etc/jenkins/jenkins_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash -xe

mvn -V -U -B clean install glassfish-copyright:check -Dcopyright.quiet=false -Dsurefire.systemPropertiesFile=${WORKSPACE}/etc/jenkins/systemPropertiesFile
1 change: 1 addition & 0 deletions etc/jenkins/systemPropertiesFile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jersey.config.server.monitoring.collision.buffer.power=3
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,14 @@
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-logger-api</artifactId>
<version>3.0.0-M3</version>
<version>${surefire.version}</version>
<!-- to get around bug https://github.com/junit-team/junit5/issues/1367 -->
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-api</artifactId>
<version>3.0.0-M3</version>
<version>${surefire.version}</version>
<optional>true</optional>
</dependency>
</dependencies>
Expand Down Expand Up @@ -2146,7 +2146,7 @@
<slf4j.version>1.7.21</slf4j.version>
<spring4.version>4.3.20.RELEASE</spring4.version>
<spring5.version>5.1.5.RELEASE</spring5.version>
<surefire.version>3.0.0-M3</surefire.version>
<surefire.version>3.0.0-M5</surefire.version>
<validation.impl.version>6.2.0.Final</validation.impl.version>
<weld.version>2.2.14.Final</weld.version> <!-- 2.4.1 doesn't work - bv tests -->
<weld3.version>3.1.7.SP1</weld3.version>
Expand All @@ -2168,7 +2168,7 @@
<jaxrs.api.spec.version>2.1</jaxrs.api.spec.version>
<jaxrs.api.impl.version>2.1.6</jaxrs.api.impl.version>
<jetty.plugin.version>6.1.26</jetty.plugin.version>
<jetty.version>9.4.28.v20200408</jetty.version>
<jetty.version>9.4.42.v20210604</jetty.version>
<jetty.servlet.api.25.version>6.1.14</jetty.servlet.api.25.version>
<jsonb.api.version>1.0.2</jsonb.api.version>
<jsonp.ri.version>1.1.6</jsonp.ri.version>
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/servlet-2.5-reload/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
</plugin>
</plugins>
Expand Down

0 comments on commit f8ed0de

Please sign in to comment.