Skip to content

Commit

Permalink
[com.circleci.v2] Support job-level parameters (#83)
Browse files Browse the repository at this point in the history
Just as similar as pipeline parameters (toplevel), CircleCI also
supports `parameters` at job-level (*1). The parameter syntax is
identical to the pipeline parameters (*2).

*1:
https://circleci.com/docs/configuration-reference/#parameters-job

*2:
https://circleci.com/docs/reusing-config/#parameter-syntax
  • Loading branch information
yyuu authored Nov 1, 2024
1 parent b76a888 commit 28aa0fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/com.circleci.v2/Config.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ class Job {
/// Number of parallel instances of this job to run (default: 1)
parallelism: Int?

/// Job-level parameters can be used when calling a job in a workflow
parameters: Mapping<String, Parameter>?

/// A map of environment variable names and values.
environment: Mapping<String, String>?

Expand Down
2 changes: 1 addition & 1 deletion packages/com.circleci.v2/PklProject
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
amends "../basePklProject.pkl"

package {
version = "1.1.5"
version = "1.2.0"
}

0 comments on commit 28aa0fa

Please sign in to comment.