Instead of giving the same '- get' to multiple jobs, is there any way that I can optimize my code by giving common '- get', if it is allowed in any way.
Currently, I have given the same code (- get) for different jobs
jobs:
- name: Name1
plan:
- aggregate:
- get: anyrepo1
- get: anyrepo2
- task: taskhere
image: anyimage1
file: file1.yml
- name: Name2
plan:
- aggregate:
- get: anyrepo1
- get: anyrepo2
- task: taskhere
image: anyimage1
file: file2.yml
I am not getting any error, but want to optimize the code