Skip to content

Commit

Permalink
Log checkout so SHA is known
Browse files Browse the repository at this point in the history
This commit changes the task type of the checkoutBwcBranch task to Exec
from LoggedExec so that the output of the checkout command is
shown. This enables us to see the SHA used for the checkout which can be
useful when debugging a BWC break.

Relates elastic#25166
jasontedor authored Jun 10, 2017
1 parent 3405bad commit a7a3af6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distribution/bwc/build.gradle
Original file line number Diff line number Diff line change
@@ -101,7 +101,8 @@ if (enabled) {
commandLine = ['git', 'fetch', 'upstream']
}

task checkoutBwcBranch(type: LoggedExec) {
// this is an Exec task so that the SHA that is checked out is logged
task checkoutBwcBranch(type: Exec) {
dependsOn fetchLatest
workingDir = checkoutDir
commandLine = ['git', 'checkout', "upstream/${bwcBranch}"]

0 comments on commit a7a3af6

Please sign in to comment.