aboutsummaryrefslogtreecommitdiffstats
path: root/tools/moon_jenkins/Jenkinsfile
diff options
context:
space:
mode:
authorRHE <rebirthmonkey@gmail.com>2018-01-12 14:56:14 +0100
committerRHE <rebirthmonkey@gmail.com>2018-01-12 14:56:14 +0100
commit5d325dfc5d666b345b6555ea9dc4ab3af853be67 (patch)
tree7888aab723b8d127666302f65ad5b5df6f9f92d1 /tools/moon_jenkins/Jenkinsfile
parentdf9333a89b3d38a5421bc86fae4e0bba9280b21b (diff)
create moon jenkins
Change-Id: I10cac28f45fca917a0a841e1113a9ffb31369f15 Signed-off-by: RHE <rebirthmonkey@gmail.com>
Diffstat (limited to 'tools/moon_jenkins/Jenkinsfile')
-rw-r--r--tools/moon_jenkins/Jenkinsfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/moon_jenkins/Jenkinsfile b/tools/moon_jenkins/Jenkinsfile
new file mode 100644
index 00000000..7e0e07c0
--- /dev/null
+++ b/tools/moon_jenkins/Jenkinsfile
@@ -0,0 +1,24 @@
+pipeline {
+ agent {
+ docker {
+ image 'wukongsun/moon_python_unit_test'
+ args '-e moon_home=${moon_home}'
+ }
+ }
+ stages {
+ stage('Python Unit Test') {
+ steps {
+ script {
+ sh("cd ${moon_home}/tests/python_unit")
+ sh("bash run_tests")
+ }
+ }
+ }
+ stage('Functional Test') {
+ script {
+ sh("cd ${moon_home}/tests/functional")
+ sh("bash run_tests")
+ }
+ }
+ }
+} \ No newline at end of file