Tooling: Make sure Jenkins nightly slack notificaiton is one message
- Remove slack notification for each build step - Set apkUrl and ipaUrl correctly for final slack notification
This commit is contained in:
parent
cdc996caa2
commit
0618ef1aa7
|
@ -55,7 +55,7 @@ node {
|
||||||
artifact.renameTo artifact_dir + filename
|
artifact.renameTo artifact_dir + filename
|
||||||
def uploadSpec = '{ "files": [ { "pattern": "*apk/' + filename + '", "target": "nightlies-local" }]}'
|
def uploadSpec = '{ "files": [ { "pattern": "*apk/' + filename + '", "target": "nightlies-local" }]}'
|
||||||
def buildInfo = server.upload(uploadSpec)
|
def buildInfo = server.upload(uploadSpec)
|
||||||
slackSend color: 'good', message: 'develop' + ' (Android) http://artifacts.status.im:8081/artifactory/nightlies-local/' + filename
|
apkUrl = 'http://artifacts.status.im:8081/artifactory/nightlies-local/' + filename
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy (iOS)') {
|
stage('Deploy (iOS)') {
|
||||||
|
@ -63,7 +63,7 @@ node {
|
||||||
def job = sh(returnStdout: true, script: 'curl https://upload.diawi.com/ -F token='+token+' -F file=@status/StatusIm.ipa -F find_by_udid=0 -F wall_of_apps=0 | jq -r ".job"').trim()
|
def job = sh(returnStdout: true, script: 'curl https://upload.diawi.com/ -F token='+token+' -F file=@status/StatusIm.ipa -F find_by_udid=0 -F wall_of_apps=0 | jq -r ".job"').trim()
|
||||||
sh 'sleep 10'
|
sh 'sleep 10'
|
||||||
def hash = sh(returnStdout: true, script: "curl -vvv 'https://upload.diawi.com/status?token="+token+"&job="+job+"'|jq -r '.hash'").trim()
|
def hash = sh(returnStdout: true, script: "curl -vvv 'https://upload.diawi.com/status?token="+token+"&job="+job+"'|jq -r '.hash'").trim()
|
||||||
slackSend color: 'good', message: 'develop' + ' (iOS) https://i.diawi.com/' + hash
|
ipaUrl = 'https://i.diawi.com/' + hash
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue