-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add profile specific jobs #409
Comments
Thanks a lot for this proposal, Ulli. |
Adding Jobs to the Controller ImageCurrent SetupThe jobs supplied with the current controller image are defined in the Potential for ExpansionAdding other jobs to the controller image is technically feasible and relatively straightforward. Challenges and ConsiderationsThe main challenge lies in tailoring the job list for each profile:
Possible SolutionsWe have two main approaches to consider:
Both solutions have their merits and drawbacks, warranting further discussion and evaluation. |
Wouldn't it be simpler if we would create for each profile that contains specific jobs another Docker compose service, that simply copies the specific job into a volume? And then the controller can copy these files into the job folder? Like the sidekick image is using the ssh folder? Or is this not possible in Docker? |
I have a PoC that works with the |
The current setup creates a running configuration of Jenkins with a specific agent, e.g. a maven agent. It would be also helpful, if the provided hello-world job would be profile dependent. I.e., when selecting the maven profile it should configure and build a maven project, and so on.
In my Jenkins student setup I am using such jobs for maven, see https://github.com/uhafner/codingstyle/tree/main/docker/images/jenkins-controller/preconfigured-jobs for more details.
Since I did not find an easy way to add profile specific jobs here, I created this issue rather than a PR. Once the general idea is possible, I can copy one of my projects of my codingstyle into this tutorial repository.
The text was updated successfully, but these errors were encountered: