-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
77 lines (66 loc) · 1.33 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
pipeline {
agent any
stages {
stage('Checkout Code') {
steps {
git(url: 'https://github.com/ankurkumarz/cloudcost-inspector.git', branch: 'main')
}
}
stage('Build Code') {
steps {
sh './gradlew assemble'
}
}
stage('Run Unit Test') {
steps {
sh './gradlew test'
}
}
stage('Check Code Quality') {
environment {
SONAR_TOKEN = credentials('SONAR_TOKEN')
}
steps {
withSonarQubeEnv('Sonar') {
sh './gradlew sonarqube -Dsonar.login=${SONAR_TOKEN}'
}
}
}
stage('Run Static Security Scan') {
steps {
sh 'ls'
}
}
stage('Check Software Supply Chain Security - SCA') {
steps {
sh './gradlew dependencies --write-locks '
snykSecurity(
snykInstallation: 'SNYK',
snykTokenId:'SNYK_API_TOKEN',
failOnIssues: 'false'
)
//sh 'phylum analyze gradle.lockfile'
}
}
stage('Run Unit Performance Test') {
steps {
sh 'ls'
}
}
stage('Run Integration Test') {
steps {
sh 'ls'
}
}
stage('Package as Docker Container') {
steps {
sh 'ls'
}
}
stage('Publish to Artifactory') {
steps {
sh 'ls'
}
}
}
}