-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
40 lines (40 loc) · 1.35 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
pipeline {
agent any
environment {
GOOGLE_APPLICATION_CREDENTIALS = credentials('0c66305b-eacb-4ad5-bad3-317b7cebcaba')
}
stages {
stage('stage') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh 'docker compose build'
sh 'docker compose down'
sh 'docker compose up -d --wait'
}
}
}
stage('log') {
steps {
sh 'docker compose logs'
}
}
stage('post') {
steps {
sh 'docker system prune --all --volumes --force'
sh 'docker volume prune --filter all=1 --force'
jiraSendDeploymentInfo environmentId: 'sg-staging-1', environmentName: 'sg-staging-1', environmentType: 'staging', state: 'successful'
publishHTML (
target : [
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'coverage',
reportFiles: 'index.html',
reportName: 'Post Reports',
reportTitles: 'Code Coverage Report'
]
)
}
}
}
}