support dynamic templates for pipelines#106
Conversation
0045028 to
a3058c6
Compare
|
With #107 it is now possible to define dynamic templates written in HCL as well. I have tested it and it is working as expected. The only thing I don't have tested yet is when the The other thing we might have to take care of is support for declarative pipelines, but I'm not sure if we have to support it in the first place. |
be21a0f to
2664cd6
Compare
|
Jenkins remote agents have two options to establish a connection.
For both, the What do you think? Maybe it makes sense to introduce |
2664cd6 to
0aa2cf5
Compare
When this happens then in our case the environment variable |
0aa2cf5 to
74c7e0d
Compare
74c7e0d to
bf4db28
Compare
|
Hi @j3t, thanks for the proposition! I'm not sure if it's a good idea to go that way:
I'm not sure exactly what's the actual need here, but AFAIC this looks way too low-level/dangerous to be exposed without a clear benefit. |
Yes, but on the other hand this what you want. The predefined templates are not suitable.
We could add a checkbox |
This comment has been minimized.
This comment has been minimized.
|
Hello there! There is an example of use-case that we have and seems to match what this PR have to offer: We have a large farm of build machine. To avoid the need to manually having to update the jenkins configuration when a new branch need to be synchronized (jenkins as code). The dynamic templates could solve this for us as we would just set a "parameter" for the constraints on the metadata flag to know when a machine is ready or not. We tried to build the PR with the version 0.10 and sadly, it's not compatible anymore :p (we can build but jenkins reboot loop). |
|
@j3t I'm no longer working on this project, feel free to discard my past comments and move this forward if you are still interested! 👍 |
This PR adds the possibility to define job templates dynamically in scripted pipelines. The functionality is similar to the pipeline integration from the Kubernetes plugin mentioned in #81.
Note: For now, only scripted pipelines are supported. See
README.mdfor more details.