DATAGEODE-313 - Add shell commands in Jenkinsfile to clean up GemFire generated artifacts (e.g. Logs, State files) between builds.

Not cleaning up this garbage leads to problems, such as:

12:12:40  Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'locatorApplication' defined in org.springframework.data.gemfire.config.annotation.LocatorApplicationConfiguration: Invocation of init method failed; nested exception is org.apache.geode.cache.DiskAccessException: For Region: DiskStore[cluster_config]: Unknown version ordinal 110 found when recovering Oplogs, caused by org.apache.geode.cache.UnsupportedVersionException: Peer or client version with ordinal 110 not supported. Highest known version is 1.10.0
This commit is contained in:
John Blum
2020-03-23 13:12:27 -07:00
parent 21c17577b3
commit fddf2d896f

24
Jenkinsfile vendored
View File

@@ -29,6 +29,12 @@ pipeline {
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'rm -Rf `find . -name "BACKUPDEFAULT*"`'
sh 'rm -Rf `find . -name "ConfigDiskDir*"`'
sh 'rm -Rf `find . -name "locator*" | grep -v "src"`'
sh 'rm -Rf `find . -name "newDB"`'
sh 'rm -Rf `find . -name "server" | grep -v "src"`'
sh 'rm -Rf `find . -name "*.log"`'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home -Duser.dir=$PWD -Djava.io.tmpdir=/tmp" ./mvnw clean dependency:list test -Dsort -U -B'
}
}
@@ -52,6 +58,12 @@ pipeline {
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'rm -Rf `find . -name "BACKUPDEFAULT*"`'
sh 'rm -Rf `find . -name "ConfigDiskDir*"`'
sh 'rm -Rf `find . -name "locator*" | grep -v "src"`'
sh 'rm -Rf `find . -name "newDB"`'
sh 'rm -Rf `find . -name "server" | grep -v "src"`'
sh 'rm -Rf `find . -name "*.log"`'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home -Duser.dir=$PWD -Djava.io.tmpdir=/tmp" ./mvnw -Pjava11 clean dependency:list test -Dsort -U -B'
}
}
@@ -67,6 +79,12 @@ pipeline {
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'rm -Rf `find . -name "BACKUPDEFAULT*"`'
sh 'rm -Rf `find . -name "ConfigDiskDir*"`'
sh 'rm -Rf `find . -name "locator*" | grep -v "src"`'
sh 'rm -Rf `find . -name "newDB"`'
sh 'rm -Rf `find . -name "server" | grep -v "src"`'
sh 'rm -Rf `find . -name "*.log"`'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home -Duser.dir=$PWD -Djava.io.tmpdir=/tmp" ./mvnw -Pjava11 clean dependency:list test -Dsort -U -B'
}
}
@@ -95,6 +113,12 @@ pipeline {
steps {
sh 'rm -rf ?'
sh 'rm -Rf `find . -name "BACKUPDEFAULT*"`'
sh 'rm -Rf `find . -name "ConfigDiskDir*"`'
sh 'rm -Rf `find . -name "locator*" | grep -v "src"`'
sh 'rm -Rf `find . -name "newDB"`'
sh 'rm -Rf `find . -name "server" | grep -v "src"`'
sh 'rm -Rf `find . -name "*.log"`'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home -Duser.dir=$PWD -Djava.io.tmpdir=/tmp " ./mvnw -Pci,artifactory ' +
'-Dartifactory.server=https://repo.spring.io ' +
"-Dartifactory.username=${ARTIFACTORY_USR} " +