generated from tdensmore/microservices-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
43 lines (37 loc) · 955 Bytes
/
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
pipeline {
agent none
stages {
stage('app test') {
when {
branch 'feature-*'
// changeset '**/app/**'
}
agent any
steps {
echo 'testing python App'
dir('app/tests'){
// The AUTH_TOKEN and PROJECT should be set from your Jenkins setup
sh 'export GIT_BRANCH'
sh 'export AUTH_TOKEN'
sh 'export PROJECT'
sh 'bash ./bunnycli.sh'
}
}
}
stage('app env') {
agent any
steps {
echo 'printing env for App'
dir('app'){
sh 'env'
sh 'echo $GIT_BRANCH'
}
}
}
}
post {
always {
echo 'Pipeline finished executing'
}
}
}