forked from darkn3rd/webmf-python-flask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
48 lines (48 loc) · 934 Bytes
/
Jenkinsfile
File metadata and controls
48 lines (48 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
pipeline {
agent {
kubernetes {
//cloud 'kubernetes'
defaultContainer 'python'
yaml """
kind: Pod
spec:
containers:
- name: python
image: python:3.7.2
command:
- cat
tty: true
"""
}
}
stages {
stage('build') {
steps {
sh 'echo "opportunity to change things and here we go again push"'
sh 'pip install -r requirements.txt'
sh '''
cat > build.properties <<EOF
TYPE=docker/image
REFERENCE=oladejif/t8-repo-jenkins-spinnaker:second-4
NAME=oladejif/t8-repo-jenkins-spinnaker
EOF
'''.stripIndent()
}
}
stage('test') {
steps {
sh 'python test.py'
}
post {
always {
junit 'test-reports/*.xml'
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'build.properties', onlyIfSuccessful: true
}
}
}