I think you're making your life more difficult than it needs to be.

The "GitHub Organization" plugin is no longer being developed because the
"GitHub Organization" project functionality has been included in other
plugins.  The "GitHub Organization" project type is alive and working very
well for many of us.  I suspect it is even the project type that is used on
ci.jenkins.io to automatically create a new folder of jobs each time a new
Jenkins plugin is added and each time a Jenkins plugin adds a Jenkinsfile.

Yes, you can probably find a way to use webhooks and triggers to
approximate some of the things that the GitHub Organization project does.
I don't think those webhooks and triggers will match what your students
will find as they become working programmers.  They will tend to see GitHub
Organization projects when they work at a company that uses GitHub.  They
will tend to see Bitbucket branch source projects when they work at a
company that uses Bitbucket.

You expressed concern that a student might change the contents of
the Jenkinsfile in their repository.  I think that is a good thing.  If
they decide that they want more tests or different tests or different types
of tests, they can add them.  If they decide that they want static analysis
with findbugs or spotbugs, they can extend the Jenkinsfile.  Since each
student has their own repository, I think you want the student to have the
autonomy to choose how their repository is built.

Mark Waite

On Fri, Jul 20, 2018 at 2:24 PM Mark <mark.gar...@gmail.com> wrote:

> Multipipeline branch options the way to go here. But Buck the bugs answer
> a few down might help you create multiple stages from a flat file of your
> students names to help you create the branches.
>
>
> https://stackoverflow.com/questions/42837066/can-i-create-dynamically-stages-in-a-jenkins-pipeline
>
> On Fri, 20 Jul 2018, 13:27 Jan Monterrubio, <janmonterru...@gmail.com>
> wrote:
>
>> This definitely sounds like what Mark suggested. If you set up the GitHub
>> service and webhook, Jenkins can build on every push to any branch in a
>> repository.
>>
>> You’ll need to make sure the repositories have a jenkinsfile:
>> https://jenkins.io/doc/book/pipeline/jenkinsfile/
>>
>> You’ll probably need some plugins like the GitHub branch source and maybe
>> GitHub organization.
>>
>> On Thu, Jul 19, 2018 at 22:43 Mark Waite <mark.earl.wa...@gmail.com>
>> wrote:
>>
>>> I think you want a "GitHub Organization" project.  It will scan an
>>> entire organization then create and destroy jobs based on the presence of a
>>> Jenkinsfile in the root directory of one or more branches in the
>>> repositories that it finds.
>>>
>>> Mark Waite.
>>>
>>> On Thu, Jul 19, 2018 at 9:26 PM Ted Cowan <tco...@my321.net> wrote:
>>>
>>>> I am a college instructor that is automating the submission of
>>>> programming assignments using GitHub Classroom.  Typically we have 50
>>>> students, each submitting 9 assignments per semester.  All of the repos are
>>>> part of one organization, and I wish to trigger a build and test when each
>>>> student pushes to their private repo.
>>>>
>>>> Is this possible in Jenkins, and if so, how?  There are myriad examples
>>>> of how to trigger a build on a single repo, but I need to trigger the same
>>>> build when any of 50 repos are changed.  I hope this doesn't mean I have to
>>>> add the names of all 50 repos to each job, but that might be doable if I
>>>> edit the config.xml outside of Jenkins.
>>>>
>>>> ...ted
>>>>
>>>> --
>>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/jenkinsci-users/56757380-01d9-45ef-9123-b0b732ab819b%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/56757380-01d9-45ef-9123-b0b732ab819b%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGVtSZVSZ_Hddyte7aZhZ_Cu%2BwB%2BF2Vu49euXEPDSvLTA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGVtSZVSZ_Hddyte7aZhZ_Cu%2BwB%2BF2Vu49euXEPDSvLTA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9Kd0cvtmMQyUXs4a9FOtetevTBSU50vt%3DiNDaJLmsVCbQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9Kd0cvtmMQyUXs4a9FOtetevTBSU50vt%3DiNDaJLmsVCbQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CA%2BGaY5iZJgKbbqzb_rTzM1B5CnM_xVtTW_-WQ5D-QJsXzbXTLQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CA%2BGaY5iZJgKbbqzb_rTzM1B5CnM_xVtTW_-WQ5D-QJsXzbXTLQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFf1xMSfz8EdKbSoOynfxgd5xKhJFv7tRER4Hz5HM1b4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to