Fix Slack messages for builds.
1) Fill in apkUrl where needed so it is not empty; 2) Remove unused variables. Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
parent
854acebb70
commit
e8ab892e95
|
@ -30,7 +30,6 @@ timeout(90) {
|
|||
def apkUrl = ''
|
||||
def testApkUrl = ''
|
||||
def ipaUrl = ''
|
||||
def testPassed = true
|
||||
def version
|
||||
def build_no
|
||||
|
||||
|
@ -170,8 +169,7 @@ timeout(90) {
|
|||
}
|
||||
|
||||
stage('Slack Notification') {
|
||||
def c = (testPassed ? 'good' : 'warning' )
|
||||
slackSend color: c, message: 'Nightly build (develop) \nTests: ' + (testPassed ? ':+1:' : ':-1:') + ')\nAndroid: ' + apkUrl + '\n iOS: ' + ipaUrl + '\n Android for e2e: ' + testApkUrl
|
||||
slackSend color: 'good', message: 'Nightly build (develop) \nAndroid: ' + apkUrl + '\n iOS: ' + ipaUrl + '\n Android for e2e: ' + testApkUrl
|
||||
}
|
||||
|
||||
stage('Run extended e2e tests') {
|
||||
|
|
|
@ -21,7 +21,6 @@ timeout(90) {
|
|||
node ('fastlane') {
|
||||
def apkUrl = ''
|
||||
def ipaUrl = ''
|
||||
def testPassed = true
|
||||
def branch;
|
||||
|
||||
load "$HOME/env.groovy"
|
||||
|
@ -80,6 +79,8 @@ timeout(90) {
|
|||
string(credentialsId: 'SLACK_JENKINS_WEBHOOK', variable: 'SLACK_URL')
|
||||
]) {
|
||||
sh 'fastlane android upload_diawi'
|
||||
|
||||
apkUrl = readFile "${env.WORKSPACE}/fastlane/diawi.out"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -112,9 +113,8 @@ timeout(90) {
|
|||
}
|
||||
|
||||
stage('Slack Notification') {
|
||||
def c = (testPassed ? 'good' : 'warning' )
|
||||
slackSend(
|
||||
color: c,
|
||||
color: 'good',
|
||||
message: "Branch: ${REPO}:${BRANCH_NAME}\nAndroid: ${apkUrl}\niOS: ${ipaUrl}"
|
||||
)
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@ timeout(90) {
|
|||
node ('fastlane'){
|
||||
def apkUrl = ''
|
||||
def ipaUrl = ''
|
||||
def testPassed = true
|
||||
def version
|
||||
def build_no
|
||||
|
||||
|
@ -127,8 +126,7 @@ timeout(90) {
|
|||
}
|
||||
|
||||
stage('Slack Notification') {
|
||||
def c = (testPassed ? 'good' : 'warning' )
|
||||
slackSend color: c, message: 'Release build \nTests: ' + (testPassed ? ':+1:' : ':-1:') + ')\nAndroid: ' + apkUrl + '\n iOS: ' + ipaUrl
|
||||
slackSend color: 'good', message: 'Release build \nAndroid: ' + apkUrl + '\n iOS: ' + ipaUrl
|
||||
}
|
||||
|
||||
stage('Build (Android) for e2e tests') {
|
||||
|
|
|
@ -20,10 +20,7 @@ def installJSDeps() {
|
|||
}
|
||||
|
||||
timeout(90) {
|
||||
node ('macos'){
|
||||
def apkUrl = ''
|
||||
def ipaUrl = ''
|
||||
def testPassed = true
|
||||
node ('fastlane'){
|
||||
def version
|
||||
def build_no
|
||||
|
||||
|
|
|
@ -21,9 +21,6 @@ def installJSDeps() {
|
|||
|
||||
timeout(90) {
|
||||
node ('fastlane'){
|
||||
def apkUrl = ''
|
||||
def ipaUrl = ''
|
||||
def testPassed = true
|
||||
def version
|
||||
def build_no
|
||||
|
||||
|
|
Loading…
Reference in New Issue