Testing pipeline publish
diff --git a/Jenkinsfile b/Jenkinsfile
index ed978ec..ecb7717 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -22,10 +22,14 @@
*
*/
node('ubuntu') {
- stage ('Build') {
+
+ stage ('Clone Sources') {
git url: 'https://gitbox.apache.org/repos/asf/archiva-redback-components-parent.git'
+ }
+
+ stage ('Build') {
withMaven(
// Maven installation declared in the Jenkins "Global Tool Configuration"
maven: 'Maven 3.5.2', jdk: 'JDK 1.8 (latest)') {
@@ -34,4 +38,16 @@
} // withMaven will discover the generated Maven artifacts, JUnit Surefire & FailSafe & FindBugs reports...
}
+
+ stage ('Deploy') {
+ withMaven(
+ maven: 'Maven 3.5.2',
+ jdk: 'JDK 1.8 (latest)',
+ mavenSettingsConfig: 'DefaultMavenSettingsProvider.1331204114925'
+ ) {
+ // 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...
+ }
}
\ No newline at end of file