This repository was archived by the owner on Sep 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { Command } from '../Commands/exports/Command';
33import { Executable } from '../Executors/types/ExecutorParameters.types' ;
44import { Generable } from '../index' ;
55import {
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 /**
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { JobParameterLiteral } from '../../Parameters/types/CustomParameterLiter
1515export 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
4142export type JobOptionalProperties = {
4243 parallelism ?: number ;
44+ circleci_ip_ranges ?: boolean ;
4345} & ExecutableProperties ;
4446
4547export type UnknownJobShape = {
You can’t perform that action at this time.
0 commit comments