diff --git a/Jenkinsfile b/Jenkinsfile index 5947dadd1..02a5921c7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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']) diff --git a/build.gradle b/build.gradle index ae83669d2..853157d21 100644 --- a/build.gradle +++ b/build.gradle @@ -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' }