Merged clean tasks

This commit is contained in:
Miro Spönemann 2016-12-05 10:01:50 +01:00
parent 5e4738ba2e
commit f5f2371777
2 changed files with 4 additions and 10 deletions

2
Jenkinsfile vendored
View file

@ -6,7 +6,7 @@ node {
stage 'Gradle Build'
try {
sh "./gradlew -PuseJenkinsSnapshots=true cleanLocalMavenRepo cleanLocalP2Repo clean build createLocalMavenRepo --refresh-dependencies --continue"
sh "./gradlew -PuseJenkinsSnapshots=true clean build createLocalMavenRepo --refresh-dependencies --continue"
archive 'build/maven-repository/**/*.*'
} finally {
step([$class: 'JUnitResultArchiver', testResults: '**/build/test-results/test/*.xml'])

View file

@ -30,14 +30,8 @@ subprojects {
apply from: "${rootDir}/gradle/validation.gradle"
}
task cleanLocalMavenRepo(type: Delete) {
task clean(type: Delete) {
group 'Build'
description 'Deletes the local Maven repository'
delete 'build/maven-repository'
}
task cleanLocalP2Repo(type: Delete) {
group 'Build'
description 'Deletes the local P2 repository'
delete 'build/p2-repository'
description 'Deletes the local repositories'
delete 'build'
}