Is it possible to download and configure jenkins with a script?
Clash 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.
shell-script docker jenkins
add a comment |Â
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.
shell-script docker jenkins
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
add a comment |Â
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.
shell-script docker jenkins
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.
shell-script docker jenkins
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
add a comment |Â
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
add a comment |Â
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.
add a comment |Â
up vote
0
down vote
OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
edited Mar 23 at 15:28
answered Mar 23 at 14:46
mrdoodles
113
113
add a comment |Â
add a comment |Â
up vote
0
down vote
OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.
add a comment |Â
up vote
0
down vote
OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.
add a comment |Â
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.
OpenStack maintains the Jenkins Job Builder python module that can use YAML configuration to spin up jobs.
answered Mar 23 at 16:33
jas-
71038
71038
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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