-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
40 lines (36 loc) · 1.05 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
pipeline {
agent any
stages {
stage ('Prepare') {
steps {
echo '==== Running prepare ===='
sh 'git submodule init'
sh 'git submodule update'
}
}
stage ('Build') {
steps {
echo '==== Running build ===='
sh 'mkdir build'
sh 'cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
sh 'cd build && make -j4'
}
}
stage ('Lint') {
steps {
echo '==== Linting ===='
//sh 'ln -s build/compile_commands.json ./compile_commands.json'
withCredentials([usernamePassword(credentialsId: 'github-app-sufst',
usernameVariable: 'GITHUB_APP',
passwordVariable: 'GITHUB_TOKEN')]) {
sh 'trunk check --ci --github-repository sufst/vcu-gui --github-commit "$(git rev-parse HEAD)" --github-annotate'
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'build/VCU-GUI_artefacts/Release/**/*', fingerprint: true
}
}
}