Skip to content

Commit c6470c6

Browse files
committed
Jenkinsfile performs git clean
1 parent 6faa67a commit c6470c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Jenkinsfile

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ try {
1414
timeout(time: 45, unit: 'MINUTES') {
1515
node('linux') {
1616
checkout scm
17+
sh "git clean -dfx"
1718
try {
1819
withEnv(["JAVA_HOME=${tool 'jdk8'}"]) {
1920
sh './gradlew clean check --no-daemon --refresh-dependencies --stacktrace'
@@ -35,6 +36,7 @@ try {
3536
timeout(time: 45, unit: 'MINUTES') {
3637
node('linux') {
3738
checkout scm
39+
sh "git clean -dfx"
3840
try {
3941
withEnv(["JAVA_HOME=${tool 'jdk9'}"]) {
4042
sh './gradlew clean test --no-daemon --refresh-dependencies --stacktrace'
@@ -53,6 +55,7 @@ try {
5355
timeout(time: 45, unit: 'MINUTES') {
5456
node('linux') {
5557
checkout scm
58+
sh "git clean -dfx"
5659
try {
5760
withEnv(["JAVA_HOME=${tool 'jdk10'}"]) {
5861
sh './gradlew clean test --no-daemon --refresh-dependencies --stacktrace'
@@ -71,6 +74,7 @@ try {
7174
timeout(time: 45, unit: 'MINUTES') {
7275
node('linux') {
7376
checkout scm
77+
sh "git clean -dfx"
7478
try {
7579
withEnv(["JAVA_HOME=${tool 'jdk11'}"]) {
7680
sh './gradlew clean test integrationTest --no-daemon --refresh-dependencies --stacktrace'
@@ -108,6 +112,7 @@ try {
108112
stage('Deploy Artifacts') {
109113
node('linux') {
110114
checkout scm
115+
sh "git clean -dfx"
111116
try {
112117
withCredentials([file(credentialsId: 'spring-signing-secring.gpg', variable: 'SIGNING_KEYRING_FILE')]) {
113118
withCredentials([string(credentialsId: 'spring-gpg-passphrase', variable: 'SIGNING_PASSWORD')]) {
@@ -132,6 +137,7 @@ try {
132137
stage('Deploy Docs') {
133138
node('linux') {
134139
checkout scm
140+
sh "git clean -dfx"
135141
try {
136142
withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) {
137143
withEnv(["JAVA_HOME=${tool 'jdk8'}"]) {

0 commit comments

Comments
 (0)