@alphabin/trx
Version:
TRX reporter for Playwright tests with Azure Blob Storage upload support
52 lines (51 loc) • 1.16 kB
TypeScript
import { CIMetadata } from '../types';
/**
* Collector for CI/CD environment metadata
*/
export declare class CICollector {
/**
* Collects CI/CD metadata
*/
collect(): Promise<Partial<CIMetadata>>;
/**
* Detects which CI/CD provider is being used
*/
private detectProvider;
/**
* Gets information about the pipeline
*/
private getPipelineInfo;
/**
* Gets pipeline ID based on the provider
*/
private getPipelineId;
/**
* Gets pipeline name based on the provider
*/
private getPipelineName;
/**
* Gets pipeline URL based on the provider
*/
private getPipelineUrl;
/**
* Gets information about the build
*/
private getBuildInfo;
/**
* Gets build number based on the provider
*/
private getBuildNumber;
/**
* Gets build trigger based on the provider
*/
private getBuildTrigger;
/**
* Gets information about the environment
*/
private getEnvironmentInfo;
/**
* Gets environment name based on the provider
*/
private getEnvironmentName;
}
export default CICollector;