Merge pull request #7116 from corda/ronanb/INFRA-1697/remove-credentals-4.8

INFRA-1697 use gradle proxy for CI , public gradle server for local
This commit is contained in:
Ronan Browne 2022-05-26 10:29:26 +01:00 committed by GitHub
commit 686cb1f497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 14 additions and 1 deletions

View File

@ -102,6 +102,7 @@ pipeline {
stage('Compile') { stage('Compile') {
steps { steps {
dir(sameAgentFolder) { dir(sameAgentFolder) {
authenticateGradleWrapper()
sh script: [ sh script: [
'./gradlew', './gradlew',
COMMON_GRADLE_PARAMS, COMMON_GRADLE_PARAMS,

View File

@ -25,6 +25,7 @@ pipeline {
stages { stages {
stage('JDK 11 Compile') { stage('JDK 11 Compile') {
steps { steps {
authenticateGradleWrapper()
sh "./gradlew --no-daemon -Pcompilation.allWarningsAsErrors=true -Ptests.failFast=false " + sh "./gradlew --no-daemon -Pcompilation.allWarningsAsErrors=true -Ptests.failFast=false " +
"-Ptests.ignoreFailures=true clean compileAll --stacktrace" "-Ptests.ignoreFailures=true clean compileAll --stacktrace"
} }

View File

@ -56,6 +56,7 @@ pipeline {
stage('Unit Tests') { stage('Unit Tests') {
agent { label 'mswin' } agent { label 'mswin' }
steps { steps {
authenticateGradleWrapper()
bat "./gradlew --no-daemon " + bat "./gradlew --no-daemon " +
"--stacktrace " + "--stacktrace " +
"-Pcompilation.warningsAsErrors=false " + "-Pcompilation.warningsAsErrors=false " +

View File

@ -49,6 +49,7 @@ pipeline {
stages { stages {
stage('Compile') { stage('Compile') {
steps { steps {
authenticateGradleWrapper()
sh script: [ sh script: [
'./gradlew', './gradlew',
COMMON_GRADLE_PARAMS, COMMON_GRADLE_PARAMS,

View File

@ -3,6 +3,7 @@
* Jenkins pipeline to build Corda OS release branches and tags. * Jenkins pipeline to build Corda OS release branches and tags.
* PLEASE NOTE: we DO want to run a build for each commit!!! * PLEASE NOTE: we DO want to run a build for each commit!!!
*/ */
@Library('corda-shared-build-pipeline-steps')
/** /**
* Sense environment * Sense environment
@ -47,6 +48,7 @@ pipeline {
stages { stages {
stage('Unit Tests') { stage('Unit Tests') {
steps { steps {
authenticateGradleWrapper()
sh "./gradlew clean --continue test --info -Ptests.failFast=true" sh "./gradlew clean --continue test --info -Ptests.failFast=true"
} }
} }

View File

@ -14,6 +14,7 @@ pipeline {
stages { stages {
stage('Detekt check') { stage('Detekt check') {
steps { steps {
authenticateGradleWrapper()
sh "./gradlew --no-daemon clean detekt" sh "./gradlew --no-daemon clean detekt"
} }
} }

View File

@ -33,6 +33,7 @@ pipeline {
stage('Publish Archived API Docs to Artifactory') { stage('Publish Archived API Docs to Artifactory') {
when { tag pattern: /^docs-release-os-V(\d+\.\d+)(\.\d+){0,1}(-GA){0,1}(-\d{4}-\d\d-\d\d-\d{4}){0,1}$/, comparator: 'REGEXP' } when { tag pattern: /^docs-release-os-V(\d+\.\d+)(\.\d+){0,1}(-GA){0,1}(-\d{4}-\d\d-\d\d-\d{4}){0,1}$/, comparator: 'REGEXP' }
steps { steps {
authenticateGradleWrapper()
sh "./gradlew :clean :docs:artifactoryPublish -DpublishApiDocs" sh "./gradlew :clean :docs:artifactoryPublish -DpublishApiDocs"
} }
} }

View File

@ -87,6 +87,7 @@ pipeline {
stages { stages {
stage('Sonatype Check') { stage('Sonatype Check') {
steps { steps {
authenticateGradleWrapper()
sh "./gradlew --no-daemon clean jar" sh "./gradlew --no-daemon clean jar"
script { script {
sh "./gradlew --no-daemon properties | grep -E '^(version|group):' >version-properties" sh "./gradlew --no-daemon properties | grep -E '^(version|group):' >version-properties"

View File

@ -29,6 +29,7 @@ pipeline {
stages { stages {
stage('Publish to Artifactory') { stage('Publish to Artifactory') {
steps { steps {
authenticateGradleWrapper()
rtServer ( rtServer (
id: 'R3-Artifactory', id: 'R3-Artifactory',
url: 'https://software.r3.com/artifactory', url: 'https://software.r3.com/artifactory',

View File

@ -86,6 +86,7 @@ pipeline {
stages { stages {
stage('Compile') { stage('Compile') {
steps { steps {
authenticateGradleWrapper()
sh script: [ sh script: [
'./gradlew', './gradlew',
COMMON_GRADLE_PARAMS, COMMON_GRADLE_PARAMS,

2
Jenkinsfile vendored
View File

@ -52,6 +52,7 @@ pipeline {
stages { stages {
stage('Compile') { stage('Compile') {
steps { steps {
authenticateGradleWrapper()
sh script: [ sh script: [
'./gradlew', './gradlew',
COMMON_GRADLE_PARAMS, COMMON_GRADLE_PARAMS,
@ -93,6 +94,7 @@ pipeline {
} }
stage('Recompile') { stage('Recompile') {
steps { steps {
authenticateGradleWrapper()
sh script: [ sh script: [
'./gradlew', './gradlew',
COMMON_GRADLE_PARAMS, COMMON_GRADLE_PARAMS,

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://gradleproxy:gradleproxy@software.r3.com/artifactory/gradle-proxy/gradle-5.6.4-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists