You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addJob(job: Job,parameters?: WorkflowJobParameters): this {
Symptom
When referencing an orb, there is no convenient way to reference an orb-defined job inside of a Workflow using dot-chaining. Looking at test code, it appears the way an orb job should be used is to pass the OrbRef to the WorkflowJob constructor and set the required parameters.
Once this is done, however, the only way to supply the WorkflowJob to a workflow is via the constructor. This is awkward as it is not compatible with the addJob interface also provided by the class.
Feature request
Allow addJob to accept a WorkflowJob or create a function addWorkflowJob within Workflow. Whichever of these is chosen, there needs to be an argument that allows additional WorkflowJobParameters (such as context, name, or requires) to be passed in and added to the parameter list already present in the WorkflowJob.
Another option could be to create a ReusedJob similar to commands/executors.
The text was updated successfully, but these errors were encountered:
circleci-config-sdk-ts/src/lib/Components/Workflow/exports/Workflow.ts
Line 86 in d3b3320
Symptom
When referencing an orb, there is no convenient way to reference an orb-defined job inside of a Workflow using dot-chaining. Looking at test code, it appears the way an orb job should be used is to pass the
OrbRef
to theWorkflowJob
constructor and set the required parameters.Once this is done, however, the only way to supply the
WorkflowJob
to a workflow is via the constructor. This is awkward as it is not compatible with theaddJob
interface also provided by the class.Feature request
Allow
addJob
to accept a WorkflowJob or create a functionaddWorkflowJob
withinWorkflow
. Whichever of these is chosen, there needs to be an argument that allows additionalWorkflowJobParameters
(such ascontext
,name
, orrequires
) to be passed in and added to the parameter list already present in theWorkflowJob
.Another option could be to create a
ReusedJob
similar to commands/executors.The text was updated successfully, but these errors were encountered: