forked from Ivasoft/mattermost-mobile
Detox Reporting: Fix artifact link (#6945)
* Detox Reporting: Fix artifact link * Simplified s3Folder
This commit is contained in:
@@ -308,6 +308,8 @@ function generateTestReport(summary, isUploadedToS3, reportLink, environment, te
|
||||
function generateTitle() {
|
||||
const {
|
||||
BRANCH,
|
||||
BUILD_AWS_S3_BUCKET,
|
||||
BUILD_ID,
|
||||
COMMIT_HASH,
|
||||
IOS,
|
||||
PULL_REQUEST,
|
||||
@@ -322,13 +324,15 @@ function generateTitle() {
|
||||
const appExtension = IOS === 'true' ? 'ipa' : 'apk';
|
||||
const appFileName = `Mattermost_Beta.${appExtension}`;
|
||||
const appBuildType = 'mattermost-mobile-beta';
|
||||
const s3Folder = `${platform.toLocaleLowerCase()}/${BUILD_ID}-${COMMIT_HASH}-${BRANCH}`.replace(/\./g, '-');
|
||||
const appFilePath = IOS === 'true' ? 'Mattermost-simulator-x86_64.app.zip' : 'android/app/build/outputs/apk/release/app-release.apk';
|
||||
let buildLink = '';
|
||||
let releaseDate = '';
|
||||
let title;
|
||||
|
||||
switch (TYPE) {
|
||||
case 'PR':
|
||||
buildLink = ` with [${lane}:${COMMIT_HASH}](https://pr-builds.mattermost.com/${appBuildType}/${BRANCH}-${COMMIT_HASH}/${appFileName})`;
|
||||
buildLink = ` with [${lane}:${COMMIT_HASH}](https://${BUILD_AWS_S3_BUCKET}.s3.amazonaws.com/${s3Folder}/${appFilePath})`;
|
||||
title = `${platform} E2E for Pull Request Build: [${BRANCH}](${PULL_REQUEST})${buildLink}`;
|
||||
break;
|
||||
case 'RELEASE':
|
||||
|
||||
Reference in New Issue
Block a user