-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile-api
More file actions
50 lines (43 loc) · 1006 Bytes
/
Copy pathJenkinsfile-api
File metadata and controls
50 lines (43 loc) · 1006 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
49
50
pipeline {
agent any
tools {
nodejs 'NodeJS v20.19.3'
}
triggers {
cron('H/5 * * * *')
}
stages {
stage('Install Dependencies') {
steps {
dir('api-tests') {
bat 'npm ci'
}
}
}
stage('Run API Tests') {
steps {
dir('api-tests') {
bat 'npm run test:api:report'
}
}
}
}
post {
always {
publishHTML(target: [
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'api-tests/reports/api-reports',
reportFiles: 'api-test-report.html',
reportName: 'API Test Report'
])
}
success {
echo '✅ API Tests Passed!'
}
failure {
echo '❌ API Tests Failed!'
}
}
}