I’ve recently spent some time rewriting our CircleCI configurations. One thing that keeps me from writing a truly DRY config again and again is this:
workflows:
my-workflow:
jobs:
- my-special-job
my-param: subjectA
- my-special-job
my-param: subjectB
requires:
- my-special-job<¿¿¿WITH my-param: subjectA???>
I initially didn’t think twice about this, as I was assuming I could simply use Alias indicators,
-my-special-job: &variant1
...
-my-special-job
....
requires:
- *variant1
but that doesn’t seem to work.
Does anyone have a solution to this?
I would hate to keep duplicating jobs with hardcoded params and slightly different names for something as simple as this.