SLING-5648 - Make Non-Eclipse Module regular Maven Packages
Add a Jenkinsfile since there is no single Maven build anymore.
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..16fb523
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,50 @@
+pipeline {
+ agent {
+ label 'ubuntu'
+ }
+
+ tools {
+ maven 'Maven 3.3.9'
+ jdk 'JDK 1.8 (latest)'
+ }
+
+ stages {
+ stage ('Build shared code') {
+ steps {
+ sh 'mvn -f shared/modules clean install'
+ junit 'shared/modules/**/surefire-reports/*.xml'
+ }
+ }
+
+ stage ('Build shared code P2 repository') {
+ steps {
+ sh 'mvn -f shared/p2 clean package'
+ }
+ }
+
+ stage ('Build Eclipse plug-ins') {
+ steps {
+ sh 'mvn -f eclipse clean verify'
+ junit 'eclipse/**/surefire-reports/*.xml'
+ archiveArtifacts artifacts: 'eclipse/**/logs/*.log'
+ }
+ }
+ }
+
+ post {
+ failure {
+ mail to: 'dev@sling.apache.org',
+ subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
+ body: "See ${env.BUILD_URL}"
+ }
+
+ unstable {
+ mail to: 'dev@sling.apache.org',
+ subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
+ body: "See ${env.BUILD_URL}"
+ }
+
+ }
+
+}
+