You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2018/12/17 23:06:32 UTC

[sling-tooling-jenkins] 01/01: SLING-7245 - Validate pull requests using Jenkins

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feature/SLING-7245
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git

commit af8b28efdd69ee3441fff65d6a4b2d28d2cbd821
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Dec 18 00:06:06 2018 +0100

    SLING-7245 - Validate pull requests using Jenkins
    
    Start work on a shared pipeline library
---
 vars/slingOsgiBundleBuild.groovy | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
new file mode 100644
index 0000000..284e398
--- /dev/null
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -0,0 +1,24 @@
+def call(Map params = [:]) {
+    def moduleDir = params.containsKey('moduleDir') ? params.buildDir: '.'
+
+    pipeline {
+        agent {
+            label 'ubuntu'
+        }
+
+        tools {
+            maven 'Maven 3.3.9'
+            jdk 'JDK 1.8 (latest)'
+        }
+
+        stages {
+            stage ('Build') {
+                steps {
+                    dir(moduleDir) {
+                        sh 'mvn clean install' 
+                    }
+                }
+            }
+        }
+    }
+}
\ No newline at end of file