We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7746aff commit 122ff7fCopy full SHA for 122ff7f
1 file changed
Jenkinsfile
@@ -0,0 +1,35 @@
1
+pipeline {
2
+ agent any
3
+ stages {
4
+ stage('build') {
5
+ parallel {
6
+ stage('python2') {
7
+ agent {
8
+ docker {
9
+ image 'python:2'
10
+ }
11
12
+ steps {
13
+ sh 'cat /etc/resolv.conf'
14
+ sh 'python2 setup.py build'
15
+ sh 'python2 setup.py test'
16
+ sh 'python2 setup.py install'
17
18
19
+ stage('python3') {
20
21
22
+ image 'python:3'
23
24
25
26
27
+ sh 'python3 setup.py build'
28
+ sh 'python3 setup.py test'
29
+ sh 'python3 setup.py install'
30
31
32
33
34
35
+}
0 commit comments