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/27 17:55:45 UTC
[25/25] logging-log4j-kotlin git commit: Add minimal jenkins pipeline
Add minimal jenkins pipeline
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j-kotlin/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j-kotlin/commit/cd789c4e
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j-kotlin/tree/cd789c4e
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j-kotlin/diff/cd789c4e
Branch: refs/heads/master
Commit: cd789c4ed2c3231f0ff803ecab42996bdc9322cb
Parents: e3405da
Author: Matt Sicker <bo...@gmail.com>
Authored: Tue Mar 27 12:54:57 2018 -0500
Committer: Matt Sicker <bo...@gmail.com>
Committed: Tue Mar 27 12:54:57 2018 -0500
----------------------------------------------------------------------
Jenkinsfile | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j-kotlin/blob/cd789c4e/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..eafcb26
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +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 {
+ label 'ubuntu'
+ }
+ tools {
+ maven 'Maven 3 (latest)'
+ jdk 'JDK 1.8 (latest)'
+ }
+ stages {
+ stage('Build') {
+ steps {
+ ansiColor('xterm') {
+ sh 'mvn install'
+ }
+ }
+ }
+ stage('Deploy') {
+ when { branch 'master' }
+ steps {
+ ansiColor('xterm') {
+ sh 'mvn deploy'
+ }
+ }
+ }
+ }
+}
+