Add Develocity build scan + build cache to Jenkins build
This commit is contained in:
parent
65911ae995
commit
96fc18f4e8
|
@ -155,6 +155,10 @@ stage('Build') {
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
String cmd = "./ci/build.sh ${buildEnv.additionalOptions ?: ''} ${state[buildEnv.tag]['additionalOptions'] ?: ''}"
|
String cmd = "./ci/build.sh ${buildEnv.additionalOptions ?: ''} ${state[buildEnv.tag]['additionalOptions'] ?: ''}"
|
||||||
withEnv(["RDBMS=${buildEnv.dbName}"]) {
|
withEnv(["RDBMS=${buildEnv.dbName}"]) {
|
||||||
|
withCredentials([string(credentialsId: helper.scmSource.pullRequest ?
|
||||||
|
'ge.hibernate.org-access-key-pr' : 'ge.hibernate.org-access-key',
|
||||||
|
variable: 'GRADLE_ENTERPRISE_ACCESS_KEY')]) {
|
||||||
|
withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
|
||||||
try {
|
try {
|
||||||
if (buildEnv.dbLockableResource == null) {
|
if (buildEnv.dbLockableResource == null) {
|
||||||
withCredentials([file(credentialsId: 'sybase-jconnect-driver', variable: 'jconnect_driver')]) {
|
withCredentials([file(credentialsId: 'sybase-jconnect-driver', variable: 'jconnect_driver')]) {
|
||||||
|
@ -181,6 +185,8 @@ stage('Build') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
finally {
|
finally {
|
||||||
if ( state[buildEnv.tag]['containerName'] != null ) {
|
if ( state[buildEnv.tag]['containerName'] != null ) {
|
||||||
sh "docker rm -f ${state[buildEnv.tag]['containerName']}"
|
sh "docker rm -f ${state[buildEnv.tag]['containerName']}"
|
||||||
|
|
Loading…
Reference in New Issue