File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ task checkstyle(type: Checkstyle) {
53
53
54
54
// Execute Checkstyle on all modified files
55
55
task checkstyleCI (type : Checkstyle ) {
56
+ logging. captureStandardOutput LogLevel . DEBUG
57
+
56
58
def changedFiles = getChangedFiles()
57
59
include changedFiles
58
60
}
@@ -68,6 +70,9 @@ def getChangedFiles() {
68
70
def envTargetBranch = System . getenv(" github.event.pull_request.base.ref" )
69
71
def envSourceBranch = System . getenv(" github.event.pull_request.head.ref" )
70
72
73
+ logger. debug(' github.event.pull_request.base.ref: {}' , envTargetBranch)
74
+ logger. debug(' github.event.pull_request.head.ref: {}' , envSourceBranch)
75
+
71
76
// Compare to master if no branch specified
72
77
def targetBranch
73
78
if (project. hasProperty(" branch" )) {
@@ -77,6 +82,8 @@ def getChangedFiles() {
77
82
}
78
83
def sourceBranch = envSourceBranch ? " origin/${ envSourceBranch} " : " "
79
84
85
+ logger. debug(' Merging {} into {}' , envTargetBranch, envSourceBranch)
86
+
80
87
// Get list of all changed files including status
81
88
def systemOutStream = new ByteArrayOutputStream ()
82
89
def command = " git diff --name-status --diff-filter=dr $targetBranch $sourceBranch "
You can’t perform that action at this time.
0 commit comments