forked from sonata-nfv/tng-sdk-traffic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
44 lines (44 loc) · 1.05 KB
/
Jenkinsfile
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
pipeline {
agent any
stages {
stage('Container Build') {
steps {
echo 'Building..'
sh 'docker build -f ./Dockerfile -t registry.sonata-nfv.eu:5000/tng-sdk-traffic .'
}
}
stage('Unit Tests') {
steps {
echo 'Unit Testing..'
sh 'docker run -i --rm registry.sonata-nfv.eu:5000/tng-sdk-traffic pytest -v'
}
}
stage('Code Style check') {
steps {
echo 'Checking code style....'
sh 'docker run -i --rm registry.sonata-nfv.eu:5000/tng-sdk-traffic flake8 --exclude .eggs .'
}
}
stage('Container publishing') {
steps {
echo 'Publishing docker image....'
sh 'docker push registry.sonata-nfv.eu:5000/tng-sdk-traffic'
}
}
stage('Deployment in Integration') {
steps {
echo 'Deploying in integration...'
}
}
stage('Smoke Tests') {
steps {
echo 'Performing Smoke Tests....'
}
}
stage('Publish Results') {
steps {
echo 'Publish Results...'
}
}
}
}