Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 18baec7

Browse files
committed
feat: add circle_ci_ip_ranges
1 parent d3b3320 commit 18baec7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/lib/Components/Job/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Command } from '../Commands/exports/Command';
33
import { Executable } from '../Executors/types/ExecutorParameters.types';
44
import { Generable } from '../index';
55
import {
6+
BooleanParameter,
67
EnvironmentParameter,
78
IntegerParameter,
89
StringParameter,
@@ -34,6 +35,10 @@ export class Job implements Generable, Executable {
3435
* Number of parallel instances of this job to run (defaults to 1 if undefined)
3536
*/
3637
parallelism: IntegerParameter | undefined;
38+
/**
39+
* Whether to use CircleCI IP Ranges for the job (defaults to false if undefined)
40+
*/
41+
circleci_ip_ranges: BooleanParameter | undefined;
3742

3843
// Execution environment properties
3944

@@ -62,6 +67,7 @@ export class Job implements Generable, Executable {
6267
this.shell = properties?.shell;
6368
this.working_directory = properties?.working_directory;
6469
this.parallelism = properties?.parallelism;
70+
this.circleci_ip_ranges = properties?.circleci_ip_ranges;
6571
}
6672

6773
/**
@@ -81,6 +87,7 @@ export class Job implements Generable, Executable {
8187
shell: this.shell,
8288
working_directory: this.working_directory,
8389
parallelism: this.parallelism,
90+
circleci_ip_ranges: this.circleci_ip_ranges,
8491
};
8592
}
8693
/**

src/lib/Components/Job/types/Job.types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { JobParameterLiteral } from '../../Parameters/types/CustomParameterLiter
1515
export type JobContentsShape = {
1616
steps: unknown[];
1717
parallelism?: number;
18+
circleci_ip_ranges?: boolean;
1819
} & AnyExecutorShape &
1920
JobEnvironmentShape;
2021

@@ -40,6 +41,7 @@ export type JobDependencies = {
4041

4142
export type JobOptionalProperties = {
4243
parallelism?: number;
44+
circleci_ip_ranges?: boolean;
4345
} & ExecutableProperties;
4446

4547
export type UnknownJobShape = {

0 commit comments

Comments
 (0)