Is it possible to download and configure jenkins with a script?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I want to develop a continuous integration with one or many scripts locally and then on a server.



For that I need Jenkins. I installed jenkins in a docker container, but would it be possible to configure it with a script so that the configuration can be used on any computer that runs it? When I talk about configuration, I'm talking about jenkins jobs and plugins.







share|improve this question




















  • Why not? Pretty much anything can be scripted.
    – terdon♦
    Mar 23 at 10:01






  • 1




    Not only is it possible, but it's already been done: github.com/chef-cookbooks/jenkins
    – jayhendren
    Mar 23 at 16:58














up vote
0
down vote

favorite












I want to develop a continuous integration with one or many scripts locally and then on a server.



For that I need Jenkins. I installed jenkins in a docker container, but would it be possible to configure it with a script so that the configuration can be used on any computer that runs it? When I talk about configuration, I'm talking about jenkins jobs and plugins.







share|improve this question




















  • Why not? Pretty much anything can be scripted.
    – terdon♦
    Mar 23 at 10:01






  • 1




    Not only is it possible, but it's already been done: github.com/chef-cookbooks/jenkins
    – jayhendren
    Mar 23 at 16:58












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to develop a continuous integration with one or many scripts locally and then on a server.



For that I need Jenkins. I installed jenkins in a docker container, but would it be possible to configure it with a script so that the configuration can be used on any computer that runs it? When I talk about configuration, I'm talking about jenkins jobs and plugins.







share|improve this question












I want to develop a continuous integration with one or many scripts locally and then on a server.



For that I need Jenkins. I installed jenkins in a docker container, but would it be possible to configure it with a script so that the configuration can be used on any computer that runs it? When I talk about configuration, I'm talking about jenkins jobs and plugins.









share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 9:23









HeartDeath

1




1











  • Why not? Pretty much anything can be scripted.
    – terdon♦
    Mar 23 at 10:01






  • 1




    Not only is it possible, but it's already been done: github.com/chef-cookbooks/jenkins
    – jayhendren
    Mar 23 at 16:58
















  • Why not? Pretty much anything can be scripted.
    – terdon♦
    Mar 23 at 10:01






  • 1




    Not only is it possible, but it's already been done: github.com/chef-cookbooks/jenkins
    – jayhendren
    Mar 23 at 16:58















Why not? Pretty much anything can be scripted.
– terdon♦
Mar 23 at 10:01




Why not? Pretty much anything can be scripted.
– terdon♦
Mar 23 at 10:01




1




1




Not only is it possible, but it's already been done: github.com/chef-cookbooks/jenkins
– jayhendren
Mar 23 at 16:58




Not only is it possible, but it's already been done: github.com/chef-cookbooks/jenkins
– jayhendren
Mar 23 at 16:58










2 Answers
2






active

oldest

votes

















up vote
1
down vote













You can write groovy scripts to configure Jenkins via the script console.



https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console



Using this I have in the past configures jobs, folders and security.



You can load scripts in from within Jenkins or push them in via HTTP or the CLI



To clarify:



Create a groovy script to configure the jobs.



Include it in your docker configuration.



Have docker run the script to create the jobs on deployment of the container.






share|improve this answer





























    up vote
    0
    down vote













    OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.






    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433022%2fis-it-possible-to-download-and-configure-jenkins-with-a-script%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      You can write groovy scripts to configure Jenkins via the script console.



      https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console



      Using this I have in the past configures jobs, folders and security.



      You can load scripts in from within Jenkins or push them in via HTTP or the CLI



      To clarify:



      Create a groovy script to configure the jobs.



      Include it in your docker configuration.



      Have docker run the script to create the jobs on deployment of the container.






      share|improve this answer


























        up vote
        1
        down vote













        You can write groovy scripts to configure Jenkins via the script console.



        https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console



        Using this I have in the past configures jobs, folders and security.



        You can load scripts in from within Jenkins or push them in via HTTP or the CLI



        To clarify:



        Create a groovy script to configure the jobs.



        Include it in your docker configuration.



        Have docker run the script to create the jobs on deployment of the container.






        share|improve this answer
























          up vote
          1
          down vote










          up vote
          1
          down vote









          You can write groovy scripts to configure Jenkins via the script console.



          https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console



          Using this I have in the past configures jobs, folders and security.



          You can load scripts in from within Jenkins or push them in via HTTP or the CLI



          To clarify:



          Create a groovy script to configure the jobs.



          Include it in your docker configuration.



          Have docker run the script to create the jobs on deployment of the container.






          share|improve this answer














          You can write groovy scripts to configure Jenkins via the script console.



          https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console



          Using this I have in the past configures jobs, folders and security.



          You can load scripts in from within Jenkins or push them in via HTTP or the CLI



          To clarify:



          Create a groovy script to configure the jobs.



          Include it in your docker configuration.



          Have docker run the script to create the jobs on deployment of the container.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 23 at 15:28

























          answered Mar 23 at 14:46









          mrdoodles

          113




          113






















              up vote
              0
              down vote













              OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.






              share|improve this answer
























                up vote
                0
                down vote













                OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.






                  share|improve this answer












                  OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 23 at 16:33









                  jas-

                  71038




                  71038






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433022%2fis-it-possible-to-download-and-configure-jenkins-with-a-script%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Christian Cage

                      How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?