Add Jenkins file
authorNsukami Patrick <ndkpatt at gmail dot com>
Thu, 16 May 2019 08:10:14 +0000
changeset 97 cb8d771b5375
parent 96 6f08ce31dff6
child 98 cc77e09651c2
Add Jenkins file
Jenkinsfile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Jenkinsfile	Thu May 16 08:10:14 2019 +0000
@@ -0,0 +1,33 @@
+pipeline {
+  agent {label 'debian_stretch'}
+  stages {
+    stage('lint') {
+      parallel {
+        stage('flake8') {
+          steps {
+            sh "tox -e flake8"
+          }
+        }
+        stage('check-manifest') {
+          steps {
+            sh "tox -e check-manifest"
+          }
+        }
+      }
+    }
+    stage('tests') {
+      steps {
+        sh "tox -e py3"
+      }
+    }
+    stage('deploy') {
+      when {
+        environment name: 'DEPLOY', value: 'true'
+      }
+      agent {label 'docker-host'}
+      steps {
+        sh "make deploy"
+      }
+    }
+  }
+}