UNPKG

@knapsack-pro/core

Version:

Knapsack Pro Core library splits tests across CI nodes and makes sure that tests will run in optimal time on each CI node. This library gives core features like communication with KnapsackPro.com API. This library is a dependency for other projects specif

34 lines (33 loc) 815 B
import { CIProviderBase } from './index.js'; export class CodefreshCI extends CIProviderBase { static get ciNodeTotal() { return undefined; } static get ciNodeIndex() { return undefined; } static get ciNodeBuildId() { return process.env.CF_BUILD_ID; } static get ciNodeRetryCount() { return undefined; } static get commitHash() { return process.env.CF_REVISION; } static get branch() { return process.env.CF_BRANCH; } static get userSeat() { return process.env.CF_BUILD_INITIATOR; } static get detect() { return 'CF_BUILD_ID' in process.env ? this : null; } static get fixedQueueSplit() { return false; } static get ciProvider() { return 'Codefresh'; } }