meta data for this page
pipeline inputs
Note: spec
keywords must be defined in “header” - before YAML's end of directives
marker —
.
- .gitlab-ci.yml
spec: inputs: nproc: default: $(nproc) description: "Value passed as -j to make" --- build: stage: build script: - m -j$[[ inputs.nproc ]]
- dynamic-job.yml
# my-template.yml spec: inputs: website: environment: default: staging stage: default: test job_prefix: default: "" --- "$[[ inputs.job_prefix]]deploy": stage: $[[ inputs.stage ]] script: echo "deploy $[[ inputs.website ]] to $[[inputs.environment]]"