Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/maven-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,11 @@
<activeProfiles>
<activeProfile>google-mirror</activeProfile>
</activeProfiles>
<servers>
<server>
<id>credentals</id>
<username>${env.CORDA_ARTIFACTORY_USERNAME}</username>
<password>${env.CORDA_ARTIFACTORY_PASSWORD}</password>
</server>
</servers>
</settings>
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request, workflow_dispatch]
jobs:
test:
name: Test (${{ matrix.java }})
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -16,7 +16,7 @@ jobs:

- name: Cache Maven Local Repo
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache@v2
uses: actions/cache@v5
with:
path: |
~/.m2/repository/*/*/*/*/*
Expand All @@ -42,7 +42,7 @@ jobs:

checks:
name: Checks (${{ matrix.java }})
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -53,7 +53,7 @@ jobs:

- name: Cache Maven Local Repo
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache@v2
uses: actions/cache@v5
with:
path: |
~/.m2/repository/*/*/*/*/*
Expand Down Expand Up @@ -90,7 +90,8 @@ jobs:
- name: Javadoc Check (JDK8 / -Prelease)
if: matrix.java == '8'
run: |
mvn -s .github/maven-settings.xml javadoc:javadoc -Prelease
mvn -s .github/maven-settings.xml -DskipTests -Prelease install -pl '!artemis-website' -am
mvn -s .github/maven-settings.xml javadoc:javadoc -Prelease -pl '!artemis-website' -am

- name: Javadoc Check (JDK 11+)
if: matrix.java != '8'
Expand Down
85 changes: 85 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!groovy

/**
* Kill already started job.
* Assume new commit takes precendence and results from previous
* unfinished builds are not required.
* This feature doesn't play well with disableConcurrentBuilds() option
*/
@Library('corda-shared-build-pipeline-steps')
import static com.r3.build.BuildControl.killAllExistingBuildsForJob

killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())

pipeline {
agent { label 'standard' }

options {
timestamps()
timeout(time: 1, unit: 'HOURS')
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
}

tools {
maven "maven"
}

environment {
ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials')
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}"
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}"
}

stages {

stage('Build ') {
steps {
sh "mvn -B install -DskipTests -Pjdk8"
}
}

stage('Test ') {
steps {
sh "mvn -B test -Pjdk8"
}
post {
always {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/**/TEST-*.xml'
archiveArtifacts artifacts: '**/target/surefire-reports/**/TEST-*.xml', fingerprint: true
}
}
}

stage('Deploy SNAPSHOT to artifactory') {
when {
expression { return is219xBranch() }
}
steps {
sh "mvn deploy -B -s .github/maven-settings.xml -DskipTests -Pjdk8 -Dartifactory.publish.buildInfo=true"
}
}

stage('Deploy Release to artifactory') {
// ****** Revert below once tested
//when {
// expression { return isReleaseTag() }
//}
steps {
sh "mvn deploy -B -s .github/maven-settings.xml -DskipTests -Pjdk8 -Dartifactory.publish.buildInfo=true"
}
}
}
}


def isReleaseTag() {
return (env.TAG_NAME =~ /^release-.*$/)
}

def isMainBranch() {
return (env.BRANCH_NAME =~ /^master$/)
}

def is219xBranch() {
return (env.BRANCH_NAME =~ /^2.19.x$/)
}
2 changes: 1 addition & 1 deletion artemis-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion artemis-cdi-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<artifactId>artemis-pom</artifactId>
<groupId>org.apache.activemq</groupId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion artemis-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-cli</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-commons</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-core-client-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-core-client-all</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-core-client-osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-core-client-osgi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-core-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-core-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>apache-artemis</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-dto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-dto</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-features/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>
<artifactId>artemis-features</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion artemis-hawtio/activemq-branding/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-hawtio-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>activemq-branding</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-hawtio/artemis-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-hawtio-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-console</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-hawtio/artemis-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-hawtio-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-hawtio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-hawtio-pom</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jakarta-client-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jakarta-client-all</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jakarta-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jakarta-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jakarta-ra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jakarta-ra</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jakarta-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jakarta-server</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jakarta-service-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jakarta-service-extensions</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jdbc-store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jdbc-store</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jms-client-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jms-client-all</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jms-client-osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jms-client-osgi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jms-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jms-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-jms-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-jms-server</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-journal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-journal</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-junit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-junit</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-pom</artifactId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion artemis-protocols/artemis-amqp-protocol/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>artemis-protocols</artifactId>
<groupId>org.apache.activemq</groupId>
<version>2.19.2-SNAPSHOT</version>
<version>2.19.2_r3-SNAPSHOT</version>
</parent>

<artifactId>artemis-amqp-protocol</artifactId>
Expand Down
Loading