Skip to content

Commit 04fd676

Browse files
author
Roman Glushko
committed
#184 Added logging of information
1 parent d551f5e commit 04fd676

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gradle-tasks/staticChecks.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ task checkstyle(type: Checkstyle) {
5353

5454
// Execute Checkstyle on all modified files
5555
task checkstyleCI(type: Checkstyle) {
56+
logging.captureStandardOutput LogLevel.DEBUG
57+
5658
def changedFiles = getChangedFiles()
5759
include changedFiles
5860
}
@@ -68,6 +70,9 @@ def getChangedFiles() {
6870
def envTargetBranch = System.getenv("github.event.pull_request.base.ref")
6971
def envSourceBranch = System.getenv("github.event.pull_request.head.ref")
7072

73+
logger.debug('github.event.pull_request.base.ref: {}', envTargetBranch)
74+
logger.debug('github.event.pull_request.head.ref: {}', envSourceBranch)
75+
7176
// Compare to master if no branch specified
7277
def targetBranch
7378
if (project.hasProperty("branch")) {
@@ -77,6 +82,8 @@ def getChangedFiles() {
7782
}
7883
def sourceBranch = envSourceBranch ? "origin/${envSourceBranch}" : ""
7984

85+
logger.debug('Merging {} into {}', envTargetBranch, envSourceBranch)
86+
8087
// Get list of all changed files including status
8188
def systemOutStream = new ByteArrayOutputStream()
8289
def command = "git diff --name-status --diff-filter=dr $targetBranch $sourceBranch"

0 commit comments

Comments
 (0)