Since you're already starting from a JENKINS_HOME directory, you may find it easier to store the job definition rather than attempting to create the job from a groovy script. Refer to https://github.com/MarkEWaite/docker-lfs/blob/lts-slim-with-plugins/ref/jobs/Git-Client-Folder/jobs/git-client-pipeline-github/config.xml for an example in a Docker image.
Mark Waite On Fri, Dec 14, 2018 at 2:46 PM Phillip Dudley <[email protected]> wrote: > Would anyone have any pointers to configuring the GitHub Organization > Item/Job with Groovy so that when my Jenkins instance starts up, it reads > the > > $JENKINS_HOME/init.groovy.d/ > > folder and configures a default job to perform GitHub Organization > scanning for Jenkinsfiles? > > I've got most of the other stuff I need such as setting banners, > installing plugins, configuring default Jenkins users and assigning them > permissions via the matrix-auth plugin. Even finally hooked up to LDAP and > I can authenticate. However, I don't seem to find too much on configuring > that plugin except through the UI. Most of my Googling returns results for > using Jenkinsfiles, or Groovy tutorials, but not actually setting up and > configuring that plugin. > > TL;DR, > Looking for a direction to learn how to configure the GitHub Organization > job to scan my GitHub Organization for Jenkinsfiles and start performing > Jobs. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/e59e3c84-27e5-4c47-a4f9-20e76860ef2f%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/e59e3c84-27e5-4c47-a4f9-20e76860ef2f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Thanks! Mark Waite -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEYa_bNJcwsZ%3D2NdZ8SqpnW2_N0ywLiAGPwU1a4shyTCw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
