Add a suffix (config identifier) to the Android artifacts.

Otherwise, it is possible to override the artifact by building the same commit but in a different configuration.

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Igor Mandrigin 2018-05-30 13:44:21 +02:00
parent a0cea0bf3f
commit a27134fb44
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
3 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ timeout(90) {
def artifact = (artifact_dir + 'app-release.apk')
def server = Artifactory.server('artifacts')
def shortCommit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim().take(6)
def filename = 'im.status.ethereum-' + shortCommit + '.apk'
def filename = 'im.status.ethereum-' + shortCommit + '-nightly' + '.apk'
def newArtifact = (artifact_dir + filename)
sh ('mv ' + artifact + ' ' + newArtifact)
def uploadSpec = '{ "files": [ { "pattern": "*apk/release/' + filename + '", "target": "nightlies-local" }]}'

View File

@ -76,7 +76,7 @@ timeout(90) {
def artifact = (artifact_dir + 'app-release.apk')
def server = Artifactory.server('artifacts')
shortCommit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim().take(6)
def filename = 'im.status.ethereum-' + shortCommit + '.apk'
def filename = 'im.status.ethereum-' + shortCommit + '-n-fl' + '.apk'
def newArtifact = (artifact_dir + filename)
sh ('cp ' + artifact + ' ' + newArtifact)
def uploadSpec = '{ "files": [ { "pattern": "*apk/release/' + filename + '", "target": "nightlies-local" }]}'

View File

@ -73,7 +73,7 @@ timeout(90) {
def artifact = (artifact_dir + 'app-release.apk')
def server = Artifactory.server('artifacts')
def shortCommit = sh(returnStdout: true, script: 'git rev-parse HEAD').trim().take(6)
def filename = 'im.status.ethereum-' + shortCommit + '.apk'
def filename = 'im.status.ethereum-' + shortCommit + '-rel' + '.apk'
def newArtifact = (artifact_dir + filename)
sh ('mv ' + artifact + ' ' + newArtifact)
def uploadSpec = '{ "files": [ { "pattern": "*apk/release/' + filename + '", "target": "nightlies-local" }]}'