Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add: Job filter as a context variable #2974
We have a situation where we need to do the following:
It looks something like this in reality:
There is currently no way to achieve this in rundeck, the closest we have is to pass in the nodes as an option to the top level job, but then we lose the node filter functionality.
By adding the job.filter variable as a job context variable, and then passing this to the NODE option of each job it is possible. We need job.filter to be available to ensure that the normal filter functionality continues to behave as expected.
@gschueler I've added a simple unit test; there didn't seem to be anything already testing the context variable functionality that I could add it on to.
If you meant for me to add an integration or acceptance test creating all the jobs and linking them together... I have no idea where to start with that.
I could easily provide some terraform manifests or job yaml files that are linked correctly but don't know how I'd hook that into the CI/build in order to test it.