Skip to content

Commit

Permalink
fix: update REPORTER_CONSTANTS.ts
Browse files Browse the repository at this point in the history
Signed-off-by: mdolhalo <[email protected]>
  • Loading branch information
mdolhalo committed Oct 25, 2023
1 parent 57ca75b commit e36e719
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/e2e/constants/REPORTER_CONSTANTS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const REPORTER_CONSTANTS: {
/**
* user name on ReportPortal
*/
RP_USER: process.env.RP_USER || process.env.USER || 'superadmin',
RP_USER: process.env.RP_USER || process.env.USER || process.env.BUILD_USER_ID || 'superadmin',

/**
* launch name to save report
Expand Down Expand Up @@ -137,10 +137,9 @@ export const REPORTER_CONSTANTS: {
* project name to save launch
*/
RP_PROJECT: (): string => {
const project: string =
BASE_TEST_CONSTANTS.TEST_ENVIRONMENT !== '' || REPORTER_CONSTANTS.RP_USE_PERSONAL
? `${REPORTER_CONSTANTS.RP_USER}_personal`
: BASE_TEST_CONSTANTS.TESTING_APPLICATION_NAME();
const project: string = REPORTER_CONSTANTS.RP_USE_PERSONAL
? `${REPORTER_CONSTANTS.RP_USER}_personal`
: BASE_TEST_CONSTANTS.TESTING_APPLICATION_NAME();
return process.env.RP_PROJECT || project;
}
};

0 comments on commit e36e719

Please sign in to comment.