diff --git a/ci/Jenkinsfile.android b/ci/Jenkinsfile.android index 34293fde51..b3e1061bf2 100644 --- a/ci/Jenkinsfile.android +++ b/ci/Jenkinsfile.android @@ -67,19 +67,10 @@ pipeline { case 'nightly': env.DIAWI_URL = mobile.android.uploadToDiawi() case 'e2e': - e2eApk = mobile.android.uploadToSauceLabs() + env.SAUCE_URL = mobile.android.uploadToSauceLabs() } } } } - stage('Run e2e') { - when { expression { cmn.getBuildType() == 'e2e' } } - steps { script { - build( - job: 'end-to-end-tests/status-app-nightly', wait: false, - parameters: [string(name: 'apk', value: "--apk=${e2eApk}")] - ) - } } - } } } diff --git a/ci/Jenkinsfile.combined b/ci/Jenkinsfile.combined index 093595dd8a..5e321105df 100644 --- a/ci/Jenkinsfile.combined +++ b/ci/Jenkinsfile.combined @@ -64,37 +64,28 @@ pipeline { stage('Notify') { steps { script { def message = ( - (env.CHANGE_ID != null ? - "Build PR #${BRANCH_NAME}(${CHANGE_BRANCH}) success! " : - "Build ${cmn.getBuildType()} success! " - )+ - "<${currentBuild.absoluteUrl}|${currentBuild.displayName}> "+ - "(${currentBuild.durationString})\n"+ - (cmn.getBuildType() == 'nightly' || cmn.getBuildType() == 'pr' ? - "Packages: "+ - "<${apkUrl}|Android>, "+ - "(<${e2eUrl}|e2e>), "+ - "<${ipaUrl}|iOS>, "+ - "<${dmgUrl}|MacOS>, "+ - "<${appUrl}|AppImage>" : - "Packages: "+ - "<${dro.getBuildVariables().get('DIAWI_URL')}|Android>, "+ - "<${ios.getBuildVariables().get('DIAWI_URL')}|iOS>" - ) + (env.CHANGE_ID != null ? + "Build PR #${BRANCH_NAME}(${CHANGE_BRANCH}) success! " : + "Build ${cmn.getBuildType()} success! " + )+ + "<${currentBuild.absoluteUrl}|${currentBuild.displayName}> "+ + "(${currentBuild.durationString})\n"+ + "Packages: "+ + "<${apkUrl}|Android>, "+ + "(<${e2eUrl}|e2e>), "+ + "<${ipaUrl}|iOS>, "+ + "<${dmgUrl}|MacOS>, "+ + "<${appUrl}|AppImage>" ) slackSend( message: message, color: 'good' ) if (env.CHANGE_ID != null) { - cmn.githubNotify( - apkUrl, - e2eUrl, - ipaUrl, - dmgUrl, - appUrl, - env.CHANGE_ID - ) + cmn.githubNotify( + apkUrl, e2eUrl, ipaUrl, dmgUrl, appUrl, + env.CHANGE_ID + ) } } } } @@ -112,5 +103,15 @@ pipeline { ) } } + stage('Run e2e') { + when { expression { cmn.getBuildType() == 'nightly' } } + steps { script { + e2eApk = e2e.getBuildVariables().get('SAUCE_URL') + build( + job: 'end-to-end-tests/status-app-nightly', wait: false, + parameters: [string(name: 'apk', value: "--apk=${e2eApk}")] + ) + } } + } } }