fix(version): return command output
This commit is contained in:
parent
7da0dd95b1
commit
3bf8e64888
|
@ -66,7 +66,7 @@ List<String> getProjectVersionTags(String overrideChannel = '') {
|
||||||
String channel = overrideChannel ? overrideChannel : getProjectVersionDefaultChannel()
|
String channel = overrideChannel ? overrideChannel : getProjectVersionDefaultChannel()
|
||||||
String shortChannel = getProjectVersionShortChannel(channel)
|
String shortChannel = getProjectVersionShortChannel(channel)
|
||||||
|
|
||||||
String currrentCommitDate = sh(script: 'git show -s --format=%ct').trim()
|
String currrentCommitDate = sh(script: 'git show -s --format=%ct', returnStdout: true).trim()
|
||||||
String dateVersion = sh(script: "TZ=Europe/Paris date -d '@${currrentCommitDate}' +%Y.%-m.%-d", returnStdout: true).trim()
|
String dateVersion = sh(script: "TZ=Europe/Paris date -d '@${currrentCommitDate}' +%Y.%-m.%-d", returnStdout: true).trim()
|
||||||
String timestamp = sh(script: "TZ=Europe/Paris date -d '@${currrentCommitDate}' +%-H%M", returnStdout: true).trim()
|
String timestamp = sh(script: "TZ=Europe/Paris date -d '@${currrentCommitDate}' +%-H%M", returnStdout: true).trim()
|
||||||
String shortCommit = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim()
|
String shortCommit = sh(script: 'git rev-parse --short HEAD', returnStdout: true).trim()
|
||||||
|
|
Loading…
Reference in New Issue