ES-853: Merging forward updates from 4.10 to 4.11 (2023-07-17)

This commit is contained in:
Ronan Browne 2023-07-17 14:35:59 +01:00
commit 991aa9fff9
10 changed files with 28 additions and 9 deletions

View File

@ -22,6 +22,13 @@ pipeline {
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14')) buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
} }
environment {
ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials')
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}"
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}"
CORDA_USE_CACHE = "corda-remotes"
}
stages { stages {
stage('JDK 11 Compile') { stage('JDK 11 Compile') {
steps { steps {

View File

@ -44,6 +44,7 @@ pipeline {
ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials') ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials')
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}" CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}"
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}" CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}"
CORDA_USE_CACHE = "corda-remotes"
} }
stages { stages {

View File

@ -17,6 +17,10 @@ pipeline {
environment { environment {
SNYK_API_TOKEN = credentials('c4-os-snyk-api-token-secret') SNYK_API_TOKEN = credentials('c4-os-snyk-api-token-secret')
C4_OS_SNYK_ORG_ID = credentials('c4-os-snyk-org-id') C4_OS_SNYK_ORG_ID = credentials('c4-os-snyk-org-id')
ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials')
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}"
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}"
CORDA_USE_CACHE = "corda-remotes"
} }
stages { stages {

View File

@ -56,6 +56,7 @@ pipeline {
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}" CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}"
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}" CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}"
CORDA_BUILD_EDITION = "${buildEdition}" CORDA_BUILD_EDITION = "${buildEdition}"
CORDA_USE_CACHE = "corda-remotes"
DOCKER_URL = "https://index.docker.io/v1/" DOCKER_URL = "https://index.docker.io/v1/"
EMAIL_RECIPIENTS = credentials('corda4-email-recipient') EMAIL_RECIPIENTS = credentials('corda4-email-recipient')
SNYK_API_KEY = "c4-os-snyk" //Jenkins credential type: Snyk Api token SNYK_API_KEY = "c4-os-snyk" //Jenkins credential type: Snyk Api token
@ -328,7 +329,7 @@ pipeline {
always { always {
script { script {
if (gitUtils.isReleaseTag()) { if (gitUtils.isReleaseTag()) {
gitUtils.getGitLog(env.TAG_NAME, env.GIT_URL.replace('https://github.com/corda/', ''), scm.userRemoteConfigs[0].credentialsId) gitUtils.getGitLog(env.TAG_NAME, env.GIT_URL.replace('https://github.com/corda/', ''))
} }
try { try {
if (params.DO_TEST) { if (params.DO_TEST) {

1
Jenkinsfile vendored
View File

@ -47,6 +47,7 @@ pipeline {
ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials') ARTIFACTORY_CREDENTIALS = credentials('artifactory-credentials')
CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}" CORDA_ARTIFACTORY_PASSWORD = "${env.ARTIFACTORY_CREDENTIALS_PSW}"
CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}" CORDA_ARTIFACTORY_USERNAME = "${env.ARTIFACTORY_CREDENTIALS_USR}"
CORDA_USE_CACHE = "corda-remotes"
} }
stages { stages {

View File

@ -107,6 +107,7 @@ buildscript {
ext.hikari_version = constants.getProperty("hikariVersion") ext.hikari_version = constants.getProperty("hikariVersion")
ext.liquibase_version = constants.getProperty("liquibaseVersion") ext.liquibase_version = constants.getProperty("liquibaseVersion")
ext.artifactory_contextUrl = 'https://software.r3.com/artifactory' ext.artifactory_contextUrl = 'https://software.r3.com/artifactory'
ext.publicArtifactURL = 'https://download.corda.net/maven'
ext.docker_compose_rule_version = constants.getProperty("dockerComposeRuleVersion") ext.docker_compose_rule_version = constants.getProperty("dockerComposeRuleVersion")
ext.selenium_version = constants.getProperty("seleniumVersion") ext.selenium_version = constants.getProperty("seleniumVersion")
ext.ghostdriver_version = constants.getProperty("ghostdriverVersion") ext.ghostdriver_version = constants.getProperty("ghostdriverVersion")
@ -169,14 +170,14 @@ buildscript {
} }
} else { } else {
maven { maven {
url "${artifactory_contextUrl}/corda-dependencies-dev" url "${publicArtifactURL}/corda-dependencies-dev"
content { content {
includeGroupByRegex 'net\\.corda(\\..*)?' includeGroupByRegex 'net\\.corda(\\..*)?'
includeGroupByRegex 'com\\.r3(\\..*)?' includeGroupByRegex 'com\\.r3(\\..*)?'
} }
} }
maven { maven {
url "${artifactory_contextUrl}/corda-releases" url "${publicArtifactURL}/corda-releases"
content { content {
includeGroupByRegex 'net\\.corda(\\..*)?' includeGroupByRegex 'net\\.corda(\\..*)?'
includeGroupByRegex 'com\\.r3(\\..*)?' includeGroupByRegex 'com\\.r3(\\..*)?'
@ -400,7 +401,7 @@ allprojects {
} }
} else { } else {
maven { maven {
url "${artifactory_contextUrl}/corda-dependencies" url "${publicArtifactURL}/corda-dependencies"
content { content {
includeGroupByRegex 'net\\.corda(\\..*)?' includeGroupByRegex 'net\\.corda(\\..*)?'
includeGroupByRegex 'com\\.r3(\\..*)?' includeGroupByRegex 'com\\.r3(\\..*)?'
@ -411,7 +412,7 @@ allprojects {
} }
} }
maven { maven {
url "${artifactory_contextUrl}/corda-dev" url "${publicArtifactURL}/corda-dev"
content { content {
includeGroupByRegex 'net\\.corda(\\..*)?' includeGroupByRegex 'net\\.corda(\\..*)?'
includeGroupByRegex 'com\\.r3(\\..*)?' includeGroupByRegex 'com\\.r3(\\..*)?'

View File

@ -1,5 +1,8 @@
FROM azul/zulu-openjdk:8u352 FROM azul/zulu-openjdk:8u352
## Remove Azul Zulu repo, as it is gone by now
RUN rm /etc/apt/sources.list.d/zulu.list
## Add packages, clean cache, create dirs, create corda user and change ownership ## Add packages, clean cache, create dirs, create corda user and change ownership
RUN apt-get update && \ RUN apt-get update && \
apt-mark hold zulu8-jdk && \ apt-mark hold zulu8-jdk && \

View File

@ -1,6 +1,6 @@
repositories { repositories {
maven { maven {
url "$artifactory_contextUrl/corda-dependencies" url "$publicArtifactURL/corda-dependencies"
} }
} }

View File

@ -1,5 +1,6 @@
pluginManagement { pluginManagement {
ext.artifactory_contextUrl = 'https://software.r3.com/artifactory' ext.artifactory_contextUrl = 'https://software.r3.com/artifactory'
ext.publicArtifactURL = 'https://download.corda.net/maven'
repositories { repositories {
// Use system environment to activate caching with Artifactory, // Use system environment to activate caching with Artifactory,
@ -21,7 +22,7 @@ pluginManagement {
} else { } else {
mavenLocal() mavenLocal()
gradlePluginPortal() gradlePluginPortal()
maven { url "${artifactory_contextUrl}/corda-dependencies" } maven { url "${publicArtifactURL}/corda-dependencies" }
} }
} }
} }

View File

@ -5,8 +5,8 @@ apply plugin: 'kotlin'
repositories { repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
maven { url "$artifactory_contextUrl/corda-dependencies" } maven { url "$publicArtifactURL/corda-dependencies" }
maven { url "$artifactory_contextUrl/corda" } maven { url "$publicArtifactURL/corda" }
} }
dependencies { dependencies {