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:
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@@ -29,6 +29,12 @@ pipeline {
|
|||||||
options { timeout(time: 30, unit: 'MINUTES') }
|
options { timeout(time: 30, unit: 'MINUTES') }
|
||||||
steps {
|
steps {
|
||||||
sh 'rm -rf ?'
|
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'
|
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') }
|
options { timeout(time: 30, unit: 'MINUTES') }
|
||||||
steps {
|
steps {
|
||||||
sh 'rm -rf ?'
|
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'
|
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') }
|
options { timeout(time: 30, unit: 'MINUTES') }
|
||||||
steps {
|
steps {
|
||||||
sh 'rm -rf ?'
|
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'
|
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 {
|
steps {
|
||||||
sh 'rm -rf ?'
|
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 ' +
|
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.server=https://repo.spring.io ' +
|
||||||
"-Dartifactory.username=${ARTIFACTORY_USR} " +
|
"-Dartifactory.username=${ARTIFACTORY_USR} " +
|
||||||
|
|||||||
Reference in New Issue
Block a user