Jenkinsfile modifications
diff --git a/Jenkinsfile b/Jenkinsfile
index c5c9312..0d3035f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -31,8 +31,9 @@
node(labels) {
cleanWs()
+
stage ('Clone Sources') {
- git url: 'https://gitbox.apache.org/repos/asf/archiva-redback-components-spring-quartz.git'
+ checkout scm
}
stage ('Build') {
@@ -41,9 +42,8 @@
jdk: buildJdk,
mavenSettingsConfig: deploySettings
) {
- // Run the maven build
sh "mvn clean install -B -U -e -fae -Dmaven.compiler.fork=false"
- } // withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe & FindBugs reports...
+ }
}
stage ('Deploy') {
@@ -52,8 +52,7 @@
jdk: buildJdk,
mavenSettingsConfig: deploySettings
) {
- // Run the maven build
- sh "mvn clean deploy -Dmaven.test.skip=true -B -U -e -fae -Dmaven.compiler.fork=false"
- } // withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe & FindBugs reports...
+ sh "mvn deploy -Dmaven.test.skip=true -B -U -e -fae -Dmaven.compiler.fork=false"
+ }
}
}