You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2017/06/30 18:21:46 UTC

logging-log4net git commit: Added a few more usecases to the jenkinsfile

Repository: logging-log4net
Updated Branches:
  refs/heads/develop d50e81177 -> 5fe4cd5da


Added a few more usecases to the jenkinsfile


Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/5fe4cd5d
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/5fe4cd5d
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/5fe4cd5d

Branch: refs/heads/develop
Commit: 5fe4cd5da9faafbf71caf07ee17c94473789ef84
Parents: d50e811
Author: Dominik Psenner <dp...@apache.org>
Authored: Fri Jun 30 20:11:01 2017 +0200
Committer: Dominik Psenner <dp...@apache.org>
Committed: Fri Jun 30 20:20:59 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 43 +++++++++++++++++++++++++++++++++++++++----
 1 file changed, 39 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/5fe4cd5d/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index bcc5ac5..817a9d4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -18,23 +18,58 @@
  */
 
 pipeline {
-	agent { label 'Windows' }
+	/*
+	TODO: eventually enable timeouts for the entire pipeline
+	options {
+		timeout(time: 1, unit 'HOURS')
+	}*/
 	stages {
 		// TODO: find a better way to determine nant latest
 		def NANT_LATEST="F:\\jenkins\\tools\\nant\\nant-0.92\\bin"
 		stage('Checkout') {
-			checkout scm
+			agent { label 'Windows' }
+			steps {
+				checkout scm
+			}
 		}
 		stage('Build') {
+			agent { label 'Windows' }
 			withEnv(["Path+NANT=$NANT_LATEST"]) {
-				bat "NAnt.exe -buildfile:log4net.build"
+				steps {
+					bat "NAnt.exe -buildfile:log4net.build"
+				}
 			}
 		}
 		stage('Test') {
+			agent { label 'Windows' }
 			withEnv(["Path+NANT=$NANT_LATEST"]) {
-				bat "NAnt.exe -buildfile:tests\\nant.build"
+				steps {
+					bat "NAnt.exe -buildfile:tests\\nant.build"
+				}
+			}
+		}
+		stage('Build-Site') {
+			agent { label 'ubuntu' }
+			steps {
+				echo 'Ths is a placeholder for the build of the site'
+			}
+		}
+		stage('Deploy-Site') {
+			agent { label 'ubuntu' }
+			when {
+				branch 'master'
+			}
+			steps {
+				echo 'This is a placeholder for the deployment of the site'
 			}
 		}
 	}
+	post {
+		failed {
+			echo 'Failed build'
+			// TODO: send email as soon as the entire building is more stable
+			//step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'dev@logging.apache.org'])
+		}
+	}
 }