-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
44 lines (43 loc) · 2.12 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('start') {
steps {
echo "execute something"
script {
text = """
| Area | KPI | What's it | |
|------------|--------------------------|-----------|---|
| Defects | Customer defects | | |
| | Defect % | | |
| | Critical/Blocker defects | | |
| | Code Coverage | | |
| | Burn down | | |
| | Epic burn down | | |
| | Velocity | | |
| | Control Chart | | |
| Automation | % of automated tests | | |
| Automation | Flaky tests | | |
| Automation | Time to execute | | |
| CI Quality | Broken builds | | |
| | | | |
"""
}
sh "ls"
sh "sleep 3"
publishChecks conclusion: 'FAILURE',detailsURL: 'http://google.com', name: 'test', status: 'IN_PROGRESS', summary: 'Summary ', text: text, title: 'title of something'
//publishChecks name: 'example', title: 'Pipeline Check', summary: 'check through pipeline', text: 'you can publish checks in pipeline script', detailsURL: 'https://github.com/jenkinsci/checks-api-plugin#pipeline-usage'
}
}
stage('build') {
steps {
echo "execute something"
sh "ls"
sh "sleep 30"
publishChecks detailsURL: 'http://google.com', name: 'test', summary: 'Summary ', text: 'one test', title: 'title of something'
publishChecks name: 'example', title: 'Pipeline Check', summary: 'check through pipeline', text: 'you can publish checks in pipeline script', detailsURL: 'https://github.com/jenkinsci/checks-api-plugin#pipeline-usage'
sh "sleep 3"
}
}
}
}