exec 명령 deprecated 됨.

providers.exec {
        commandLine 'git', 'rev-parse', '--short', 'HEAD'
        standardOutput = stdout;
    }.result.get()
이렇게 고침
main
icksishu@gmail.com 2 months ago
parent 12aabf8f63
commit e91c2ac724

@ -11,10 +11,10 @@ version = '1.0.7'
def gitCommitId = ''
try {
def stdout = new ByteArrayOutputStream()
exec {
providers.exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout;
}
}.result.get()
gitCommitId = stdout.toString().trim()
}
catch (Exception ignored) {

Loading…
Cancel
Save