15
15
node(' ubuntu1804' ) {
16
16
checkout scm
17
17
try {
18
- sh ' ./gradlew clean check --no-daemon --refresh-dependencies'
18
+ withEnv([" JAVA_HOME=${ tool 'jdk8'} " ]) {
19
+ sh ' ./gradlew clean check --no-daemon --refresh-dependencies --stacktrace'
20
+ }
19
21
}
20
22
catch (e) {
21
23
currentBuild. result = ' FAILED: check'
35
37
checkout scm
36
38
try {
37
39
withEnv([" JAVA_HOME=${ tool 'jdk9'} " ]) {
38
- sh ' ./gradlew clean test --no-daemon --refresh-dependencies'
40
+ sh ' ./gradlew clean test --no-daemon --refresh-dependencies --stacktrace '
39
41
}
40
42
}
41
43
catch (e) {
53
55
checkout scm
54
56
try {
55
57
withEnv([" JAVA_HOME=${ tool 'jdk10'} " ]) {
56
- sh ' ./gradlew clean test --no-daemon --refresh-dependencies'
58
+ sh ' ./gradlew clean test --no-daemon --refresh-dependencies --stacktrace '
57
59
}
58
60
}
59
61
catch (e) {
71
73
checkout scm
72
74
try {
73
75
withEnv([" JAVA_HOME=${ tool 'jdk11'} " ]) {
74
- sh ' ./gradlew clean test integrationTest --no-daemon --refresh-dependencies'
76
+ sh ' ./gradlew clean test integrationTest --no-daemon --refresh-dependencies --stacktrace '
75
77
}
76
78
}
77
79
catch (e) {
89
91
checkout scm
90
92
try {
91
93
withEnv([" JAVA_HOME=${ tool 'openjdk12'} " ]) {
92
- sh ' ./gradlew clean test integrationTest --no-daemon --refresh-dependencies'
94
+ sh ' ./gradlew clean test integrationTest --no-daemon --refresh-dependencies --stacktrace '
93
95
}
94
96
}
95
97
catch (e) {
@@ -111,7 +113,9 @@ try {
111
113
withCredentials([string(credentialsId : ' spring-gpg-passphrase' , variable : ' SIGNING_PASSWORD' )]) {
112
114
withCredentials([usernamePassword(credentialsId : ' oss-token' , passwordVariable : ' OSSRH_PASSWORD' , usernameVariable : ' OSSRH_USERNAME' )]) {
113
115
withCredentials([usernamePassword(credentialsId : ' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' , usernameVariable : ' ARTIFACTORY_USERNAME' , passwordVariable : ' ARTIFACTORY_PASSWORD' )]) {
114
- sh ' ./gradlew deployArtifacts finalizeDeployArtifacts --stacktrace --no-daemon --refresh-dependencies -Psigning.secretKeyRingFile=$SIGNING_KEYRING_FILE -Psigning.keyId=$SPRING_SIGNING_KEYID -Psigning.password=$SIGNING_PASSWORD -PossrhUsername=$OSSRH_USERNAME -PossrhPassword=$OSSRH_PASSWORD -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD'
116
+ withEnv([" JAVA_HOME=${ tool 'jdk8'} " ]) {
117
+ sh ' ./gradlew deployArtifacts finalizeDeployArtifacts --no-daemon --refresh-dependencies --stacktrace -Psigning.secretKeyRingFile=$SIGNING_KEYRING_FILE -Psigning.keyId=$SPRING_SIGNING_KEYID -Psigning.password=$SIGNING_PASSWORD -PossrhUsername=$OSSRH_USERNAME -PossrhPassword=$OSSRH_PASSWORD -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD'
118
+ }
115
119
}
116
120
}
117
121
}
@@ -130,7 +134,9 @@ try {
130
134
checkout scm
131
135
try {
132
136
withCredentials([file(credentialsId : ' docs.spring.io-jenkins_private_ssh_key' , variable : ' DEPLOY_SSH_KEY' )]) {
133
- sh ' ./gradlew deployDocs --stacktrace --no-daemon --refresh-dependencies -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME'
137
+ withEnv([" JAVA_HOME=${ tool 'jdk8'} " ]) {
138
+ sh ' ./gradlew deployDocs --no-daemon --refresh-dependencies --stacktrace -PdeployDocsSshKeyPath=$DEPLOY_SSH_KEY -PdeployDocsSshUsername=$SPRING_DOCS_USERNAME'
139
+ }
134
140
}
135
141
}
136
142
catch (e) {
0 commit comments