-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJenkinsfile
46 lines (46 loc) · 1.25 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
pipeline {
agent any
stages {
stage('Static Analysis') {
steps {
echo 'Run the static analysis to the code'
}
}
stage('Compile') {
steps {
echo 'Compile the source code'
}
}
stage('Security Check') {
steps {
echo 'Run the security check against the application'
}
}
stage('Run Unit Tests') {
steps {
echo 'Run unit tests from the source code'
}
}
stage('Run Integration Tests') {
steps {
echo 'Run only crucial integration tests from the source code'
}
}
stage('Publish Artifacts') {
steps {
echo 'Save the assemblies generated from the compilation'
}
}
}
post {
always {
script {
if (env.CHANGE_ID) {
githubStatus context: 'continuous-integration/jenkins', state: 'success'
githubComment message: "The pipeline completed successfully!"
githubLabel labels: ['approved']
}
}
}
}
}