How can I hijack into container where instanced vars are used? #9058
Unanswered
lordgreg
asked this question in
Help & Support
Replies: 1 comment
-
|
Hmm I wonder if the branch name Did a quick look and seems like the answer is it is the concourse/fly/commands/internal/flaghelpers/job_flag.go Lines 36 to 44 in cd71788 The UX around instance pipelines needs to be improved. Stuff like this sucks! My only suggestion is to use the I realize this may not work for you if you're doing automation stuff. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have created a pipeline using
set_pipelinejob:... - load_var: branches file: "pos-frontend-pull-request-changes/branches.json" - across: - var: branch values: ((.:branches)) instance_vars: id: ((.:branch.number)) branch: ((.:branch.head_ref)) set_pipeline: "tests-batman" vars: head_ref: ((.:branch.head_ref)) head_sha: ((.:branch.head_sha)) base_ref: ((.:branch.base_ref)) base_sha: ((.:branch.base_sha)) file: ci/pipeline-tests.yml ...As you see, the instance vars are
idandbranch.If I now try to hijack the job
test, I run:However, this shows me all possible tasks from pipeline for all jobs with instanced vars from
branchesarray. How can I filter only the specificbranchandid? If you execute hijack command wrong enough (:)), you get an error:If you have only one instanced variable, then this works:
However, having two instanced vars, this doesn't seem to work and I always get an error:
I've tried next syntax:
Nothing seems to show only the instanced container options.
What is the correct syntax then?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions