summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick <[email protected]>2019-09-13 08:29:42 -0400
committerNick <[email protected]>2019-09-13 08:29:42 -0400
commitfb93822b1411b50b746d9be12ef11f37e51a4ed8 (patch)
treee7853217fec8decf932a4f62c3bbd996ceb15899
parentf7f5787e40aabbfab53a379a36d0d4d976831a4b (diff)
Add jenkinsfile format checker
-rw-r--r--Jenkinsfile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 8a3ad19..5863a5a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,7 +6,17 @@ pipeline {
options {
disableConcurrentBuilds()
}
-
+ stages {
+ stage('formatting-check') {
+ steps {
+ sh '''
+ git remote rm upstream
+ git remote add upstream https://github.com/purdue-aalp/gpgpu-sim_distribution
+ git fetch upstream
+ git diff --name-only upstream/dev | grep -E "*.cc|*.h|*.cpp|*.hpp" | xargs ./run-clang-format.py --clang-format-executable /home/tgrogers-raid/a/green349/clang-format
+ '''
+ }
+ }
stages {
stage('simulator-build') {
steps {