File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 14
14
timeout(time : 45 , unit : ' MINUTES' ) {
15
15
node(' linux' ) {
16
16
checkout scm
17
+ sh " git clean -dfx"
17
18
try {
18
19
withEnv([" JAVA_HOME=${ tool 'jdk8'} " ]) {
19
20
sh ' ./gradlew clean check --no-daemon --refresh-dependencies --stacktrace'
35
36
timeout(time : 45 , unit : ' MINUTES' ) {
36
37
node(' linux' ) {
37
38
checkout scm
39
+ sh " git clean -dfx"
38
40
try {
39
41
withEnv([" JAVA_HOME=${ tool 'jdk9'} " ]) {
40
42
sh ' ./gradlew clean test --no-daemon --refresh-dependencies --stacktrace'
53
55
timeout(time : 45 , unit : ' MINUTES' ) {
54
56
node(' linux' ) {
55
57
checkout scm
58
+ sh " git clean -dfx"
56
59
try {
57
60
withEnv([" JAVA_HOME=${ tool 'jdk10'} " ]) {
58
61
sh ' ./gradlew clean test --no-daemon --refresh-dependencies --stacktrace'
71
74
timeout(time : 45 , unit : ' MINUTES' ) {
72
75
node(' linux' ) {
73
76
checkout scm
77
+ sh " git clean -dfx"
74
78
try {
75
79
withEnv([" JAVA_HOME=${ tool 'jdk11'} " ]) {
76
80
sh ' ./gradlew clean test integrationTest --no-daemon --refresh-dependencies --stacktrace'
@@ -108,6 +112,7 @@ try {
108
112
stage(' Deploy Artifacts' ) {
109
113
node(' linux' ) {
110
114
checkout scm
115
+ sh " git clean -dfx"
111
116
try {
112
117
withCredentials([file(credentialsId : ' spring-signing-secring.gpg' , variable : ' SIGNING_KEYRING_FILE' )]) {
113
118
withCredentials([string(credentialsId : ' spring-gpg-passphrase' , variable : ' SIGNING_PASSWORD' )]) {
@@ -132,6 +137,7 @@ try {
132
137
stage(' Deploy Docs' ) {
133
138
node(' linux' ) {
134
139
checkout scm
140
+ sh " git clean -dfx"
135
141
try {
136
142
withCredentials([file(credentialsId : ' docs.spring.io-jenkins_private_ssh_key' , variable : ' DEPLOY_SSH_KEY' )]) {
137
143
withEnv([" JAVA_HOME=${ tool 'jdk8'} " ]) {
You can’t perform that action at this time.
0 commit comments