-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
39 lines (39 loc) · 1.17 KB
/
Jenkinsfile
File metadata and controls
39 lines (39 loc) · 1.17 KB
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
// if jenkins SCM polling is set to trigger on post-commit,
// can use this for a trigger:
// curl http://jenkins:8080/git/notifyCommit?url=git@gitserver:tools/common.git
// or
// curl -G --data-urlencode url=local_git_project_path --data-urlencode token=token http://localhost:8080/git/notifyCommit
//
pipeline {
// agent can be any, a label, or none
agent any
options {
skipStagesAfterUnstable()
}
stages {
//stage('Build') {
// steps {
// echo 'Building..'
// sh 'ant compileTests'
// }
//}
stage('Test') {
steps {
echo 'Testing..'
sh 'ant runTests'
}
}
// TODO: add static code analysis (spotbugs, or included in SAST tool)
// TODO: add SAST scanners, for java and the c/c++, and rust code
// Snyk, SonarCube community edition
stage('Deploy') {
steps {
// increment version in shared.mf too
echo 'Deploying..'
//sh 'ant runCoverage'
//sh 'ant javadoc'
//sh 'ant package'
}
}
}
}