zipkin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abe...@apache.org
Subject [incubator-zipkin-brave-karaf] 41/46: Create Jenkinsfile (#13)
Date Thu, 31 Jan 2019 11:20:03 GMT
This is an automated email from the ASF dual-hosted git repository.

abesto pushed a commit to branch dont-sign-snapshots
in repository https://gitbox.apache.org/repos/asf/incubator-zipkin-brave-karaf.git

commit 6558b9372c1354a51893c00b48f6a92f9e42f327
Author: Zoltán Nagy <abesto0@gmail.com>
AuthorDate: Wed Jan 30 17:11:32 2019 +0000

    Create Jenkinsfile (#13)
    
    Create Jenkinsfile running tests
---
 Jenkinsfile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..f521de9
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,51 @@
+pipeline {
+    agent {
+        label 'ubuntu'
+    }
+    
+    tools {
+        jdk 'JDK 1.8 (latest)'
+    }
+
+    options {
+        buildDiscarder(logRotator(numToKeepStr: '10'))
+        timestamps()
+    }
+
+    triggers {
+        pollSCM('H/15 * * * *')
+    }
+
+    stages {
+        stage('SCM Checkout') {
+            steps {
+                deleteDir()
+                checkout scm
+            }
+        }
+        
+        stage('Check environment') {
+            steps {
+                sh 'env'
+                sh 'pwd'
+                sh 'ls'
+                sh 'git status'
+            }
+        }
+
+        stage('Run tests') {
+            steps {
+                // use install, as opposed to verify, to ensure invoker tests use latest
code
+                sh './mvnw clean install'
+            }
+        }
+    }
+
+
+    post {
+        always {
+            junit '**/target/surefire-reports/*.xml'
+            deleteDir()
+        }
+    }
+}


Mime
View raw message