-
Notifications
You must be signed in to change notification settings - Fork 58
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
Ability to include groovy steps defined in the application repository #95
Comments
thanks for the feature idea @Vince-Cercury! this ought to be possible and would definitely consider implementing this after I work through the 2.0 scope. a few thoughts:
Would love your feedback on the specifics of how this should work! |
" library be loaded from the same branch as the pipeline for a multi-branch project" |
circling back to this 😓 . Perhaps it would be simplest to support something like: jte{
local_library= ".jte"
} so if the branch is a Multibranch Project then and JTE will just load the library designated at that path with no need to add anything at all to the JTE would then fail if this field was set and the path declared wasn't a directory with at least a Pipeline admins that wished to disable this could always define: jte{
local_libraries = false
} and simply not allow teams to set this field if they wished to lock it down. |
Feature Request
Sometimes an application or team need to implement a different step. Which may not be useful to any other application or team. For instance handling of custom test framework.
Step implementation https://jenkinsci.github.io/templating-engine-plugin/pages/Primitives/default_step_implementation.html#default-step-implementation
sort of allow that. But it is only for simple steps that are docker based. Not suitable for series of commands, try/catch, if conditions, etc.
At the moment, that particular app or team would have to implement that step in a separate repository and add the library inclusion in the definition of the job. They could use the same repository as the application, but even then, the lib needs to be added to the job configuration. And they would have to specify the branch. Which is confusing as multi-branch pipeline is already handling multiple branches.
Can we load libraries defined locally, in a subfolder, alongside the pipeline_config.groovy?
The text was updated successfully, but these errors were encountered: