On Wed, Sep 27, 2017 at 9:25 AM Diego Lagos <[email protected]>
wrote:

> Thx so much
>
> is a starting point, even if it is a limit that there is no direct thing
> to automatically configure jenkins without too much trouble
>
>
I'm not sure I can envision a "direct thing to automatically configure"
something that has 1300+ plugins which are allowed to increase its
capabilities and modify its behavior.  The Jenkins ecosystem is interesting
to users because it has so connections to so many things, and can help with
so many different problems.

The current techniques (use groovy init scripts, keep copies of the
configuration files) have different strengths and weaknesses.

The groovy init scripts technique seems to be the preferred technique for
expressing configuration as code.  The resulting scripts read like code,
and are very clear about what they change.  Unfortunately, it generally
takes more work to find examples, explore alternatives, and ultimately
create the configuration you want.

The "keep copies of the configuration files" is easy to configure
initially, but is not as easy to read or modify as the groovy init scripts
technique.

Mark Waite


>
> Il giorno giovedì 21 settembre 2017 06:49:35 UTC+2, Mark Waite ha scritto:
>
>> I use a docker image with copies of the relevant configuration files
>> copied from a system that behaves the way I want.  It has worked quite well
>> for me, and has avoided me spending any significant time investigating how
>> to script the initial configuration.
>>
>> Refer to https://github.com/MarkEWaite/docker-lfs/tree/lts-with-plugins
>> for an example of that technique.
>>
>> Others have preferred to script the initial configuration with groovy
>> init scripts.
>>
>> I'm not aware of a definitive reference for groovy init scripts.  Refer
>> to https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console for
>> groovy examples
>>
>> Start with
>> https://wiki.jenkins.io/display/JENKINS/Configuring+Jenkins+upon+start+up
>> , then review https://wiki.jenkins.io/display/JENKINS/Groovy+Hook+Script
>> and
>> https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/jenkinsci-dev/NYPGvrVolak/hXYY-nSqBAAJ
>> and other topics.
>>
>> Mark Waite
>>
>> On Wed, Sep 20, 2017 at 3:23 PM Diego Lagos <[email protected]>
>> wrote:
>>
> I would like to ask you if there is a documentation explaining how to
>>> configure through files, plugins, nodes, git repositories, etc ...
>>> so you do not have to use the graphics console every time
>>>
>>> --
>>> 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/dfc5e3ea-5a33-445e-82d7-0d8c0c011fab%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/dfc5e3ea-5a33-445e-82d7-0d8c0c011fab%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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/44ca6b13-e27b-4642-9fa4-052bda87bd26%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/44ca6b13-e27b-4642-9fa4-052bda87bd26%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEgMDCmEftP3rzszqTX7iXVr9KZ%3DgC7zLnLJofmwDSW3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to