Jenkinsfile: added stage that should run in a docker container

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

Branch: refs/heads/develop
Commit: 0aa6a611d97708d38b4163ecf51c2a823cb2ccba
Parents: 94aa25e
Author: Dominik Psenner <[email protected]>
Authored: Sun Jul 2 16:59:59 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Sun Jul 2 16:59:59 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/0aa6a611/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 3b99034..0d6ce56 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -36,11 +36,21 @@ pipeline {
                                checkout scm
                        }
                }
-               stage('Build') {
+               stage('Build on Windows') {
                        steps {
                                bat "${NAnt} -buildfile:log4net.build"
                        }
                }
+               stage('Build on ubuntu') {
+                       agent {
+                               docker {
+                                       image 'ubuntu:16.04'
+                               }
+                       }
+                       steps {
+                               sh "uname -a"
+                       }
+               }
                stage('Test on Windows') {
                        steps {
                                bat "${NAnt} -buildfile:tests\\nant.build"

Reply via email to