Puppet and Jenkins How can I manage Jenkins job using Puppet DSL

0 votes

I have installed the rtyler/jenkins module in puppet to use jenkins with puppet. 

Can somebody tell me how do i manage jenkins jobs like create, remove etc using puppet DSL?

Aug 28, 2019 in Puppet by kriti
765 views

1 answer to this question.

0 votes

Managing Jenkins jobs:

Build jobs can be managed using the jenkins::job define

  • Creating or updating a build job:

jenkins::job { 'test-build-job':
  config => template("${templates}/test-build-job.xml.erb"),
}
  • Disabling a build job:

jenkins::job { 'test-build-job':
  enabled => 0,
  config  => template("${templates}/test-build-job.xml.erb"),
}
  • Removing an existing build job:

jenkins::job { 'test-build-job':
  ensure => 'absent',
}

answered Aug 28, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

How do I install factor and puppet using Ruby Gem?

Hey @Kiara, execute these commands to install ...READ MORE

answered Mar 8, 2019 in Puppet by Yogesh
2,172 views
0 votes
1 answer

Puppet+Kubernetes: How do I use kubetool and what is it's significance in using kubernetes with puppet?

The module puppetlabs/kubernetes has Kubetool, which is ...READ MORE

answered Aug 21, 2019 in Puppet by Sirajul
• 59,230 points
1,174 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 votes
1 answer
0 votes
1 answer

Can i install puppet master and puppet agent on the same centos machine? How will that work?

Yes, It's now possible to install both ...READ MORE

answered Aug 6, 2019 in Puppet by Sirajul
• 59,230 points
1,134 views
0 votes
1 answer

Puppet : Can i install jenkins on a puppet server using Git?

Installing puppet-jenkins is easy. To install via Git, ...READ MORE

answered Aug 9, 2019 in Puppet by Sirajul
• 59,230 points
703 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP