It’s probably doable, but it founds like a file secret could serve your purpose. It would be readable from any job in Jenkins as well as your plugin
Sent from my iPhone On Nov 15, 2023, at 8:31 AM, tzach....@gmail.com <tzach.solo...@gmail.com> wrote:
My scenario is that i have a JSON file located in a remote repo. In that file there is a configuration I need for the plugin.
I want to be able to pull that file and read it in my plugin. The reason for it being in the remote repo as it serves also other applications and not just my plugin.
Is it doable?
Thanks, Tzach
On Wednesday, 15 November 2023 at 18:01:39 UTC+2 jef...@gmail.com wrote:
Have you looked at the source for the Github Branch Source plugin? I imagine it has examples of how to do many things.
From your description though, it sounds like you might be able to store your configuration in Jenkins itself? Maybe as a secret? That said, I have to admit I don't 100% understand your scenario.
Best Jeff
Hi,
I have a private that needs configuration.That configuration is stored in a remote git repository. I would like to harness git plugin and use it in my plugin. Is there an example of how to do it?
Thanks, Tzach
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/6d1595d3-8c54-45b5-a3c2-910b5edd61aan%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/B3CE9BF6-4B36-4880-A78D-E172B748E8F0%40gmail.com.
|