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:
parent
a0cea0bf3f
commit
a27134fb44
|
@ -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" }]}'
|
||||
|
|
|
@ -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" }]}'
|
||||
|
|
|
@ -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" }]}'
|
||||
|
|
Loading…
Reference in New Issue