Adding clean step and maven settings for build
diff --git a/Jenkinsfile b/Jenkinsfile
index 2610944..625c5ea 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -30,6 +30,8 @@
node(labels) {
+ cleanWs()
+
stage ('Clone Sources') {
git url: 'https://gitbox.apache.org/repos/asf/archiva-redback-components-modello-plugins.git'
}
@@ -37,7 +39,8 @@
stage ('Build') {
withMaven(
maven: buildMvn,
- jdk: buildJdk
+ jdk: buildJdk,
+ mavenSettingsConfig: deploySettings
) {
// Run the maven build
sh "mvn clean install -B -U -e -fae -Dmaven.compiler.fork=false"