From 0618ef1aa74f9af89905807803a7e64d18dcd27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Thor=C3=A9n?= Date: Tue, 12 Sep 2017 19:01:56 +0200 Subject: [PATCH] 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 --- Jenkinsfile.nightly | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.nightly b/Jenkinsfile.nightly index decfc522ee..7494c65048 100644 --- a/Jenkinsfile.nightly +++ b/Jenkinsfile.nightly @@ -55,7 +55,7 @@ node { artifact.renameTo artifact_dir + filename def uploadSpec = '{ "files": [ { "pattern": "*apk/' + filename + '", "target": "nightlies-local" }]}' 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)') { @@ -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() sh 'sleep 10' 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) {