Using step variables (job/environment, inputs) in step path/directory
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Currently it's not possible to use step variables (job/environment, inputs) in step paths/directories.
Examples
Some examples, which are not working:
Job environment variable
job:test:
variables:
TEST_DIR: .gitlab-ci
run:
- name: test_job_variable
step: ./${{job.TEST_DIR}}/step/someStep
Steps inputs
spec:
inputs:
testDir:
type: string
default: .gitlab-ci
---
run:
- name: test_steps_inputs
step: ./${{inputs.testDir}}/step/someStep
See also: #582908 #582910 (closed) #582912 #582913
Edited by 🤖 GitLab Bot 🤖