You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2018/03/10 06:02:01 UTC

logging-chainsaw git commit: Fix docker usage and add license header

Repository: logging-chainsaw
Updated Branches:
  refs/heads/master 1a8b61ce2 -> 08f5d94b3


Fix docker usage and add license header


Project: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/commit/08f5d94b
Tree: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/tree/08f5d94b
Diff: http://git-wip-us.apache.org/repos/asf/logging-chainsaw/diff/08f5d94b

Branch: refs/heads/master
Commit: 08f5d94b343dfa3c94787ce056b03d8db2992900
Parents: 1a8b61c
Author: Matt Sicker <bo...@gmail.com>
Authored: Sat Mar 10 00:01:42 2018 -0600
Committer: Matt Sicker <bo...@gmail.com>
Committed: Sat Mar 10 00:01:42 2018 -0600

----------------------------------------------------------------------
 Jenkinsfile | 41 +++++++++++++++++++++++++++++++++++------
 1 file changed, 35 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-chainsaw/blob/08f5d94b/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 4664388..449cc37 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,16 +1,45 @@
 #!groovy
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 pipeline {
     agent {
-        docker {
-            image 'maven:3-alpine'
-            args '-v /root/.m2:/root/.m2'
-        }
+        label 'ubuntu'
     }
     stages {
+        stage('Checkout') {
+            steps {
+                deleteDir()
+                checkout scm
+            }
+        }
         stage('Build') {
             steps {
-                sh 'mvn -B site:site'
-                sh 'mvn -B package'
+                checkout scm
+                def image = docker.image 'maven:3-alpine'
+                image.inside {
+                    ansiColor
+                    sh 'mvn site:site'
+                    sh 'mvn package'
+                    junit '**/target/surefire-reports/*.xml'
+                    archive 'target/apache-chainsaw-*.*'
+                }
             }
         }
     }