A wrapper cookbook that installs jenkins to be used with archiva-liatrio, sonarqube-liatrio, tomcat-liatrio, selenium-liatrio, and hygieia-liatrio in a pipeline.
The following versions of ChefDK, Vagrant, and VirtualBox.
$ chef -v
Chef Development Kit Version: 0.16.28
chef-client version: 12.12.15
delivery version: master (921828facad8a8bbbd767368bfc72f19bd30e7bd)
berks version: 4.3.5
kitchen version: 1.10.2
$ vagrant -v
Vagrant 1.8.4
$ VBoxManage -v
5.0.26r108824
Warning: Do not have vagrant-vbguest
plugin installed as there is a conflict.
vagrant up
or
Just include jenkins-liatrio
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[jenkins-liatrio]"
"recipe[jenkins-liatrio::install_plugins]"
"recipe[jenkins-liatrio::create_job]"
"recipe[jenkins-liatrio::create_creds]"
]
}
default[:jenkins_liatrio][:create_job][:maven_goals] = 'clean install'
default[:jenkins_liatrio][:nexus_repo] = 'nexus.local'
default[:jenkins_liatrio][:packages] = %w{java-1.8.0-openjdk-devel java-1.8.0-openjdk maven maven-war-plugin}
default[:jenkins_liatrio][:sleep_interval_small] = 3
default[:jenkins_liatrio][:install_plugins][:plugins_list] = %w{git github naginator sonar}
default[:jenkins_liatrio][:install_plugins][:enablearchiva] = false
default[:jenkins_liatrio][:install_plugins][:maven_mirror] = "http://localhost:8081/repository/internal"
default[:jenkins_liatrio][:install_plugins][:enablesonar] = false
default[:jenkins_liatrio][:install_plugins][:enablearchiva] = false
default[:jenkins_liatrio][:install_plugins][:sonarurl] = "http://localhost:9000"
default[:jenkins_liatrio][:install_plugins][:sonarjdbcurl] = "tcp://localhost:9092/sonar"
default[:jenkins_liatrio][:install_plugins][:jenkinsdlurl] = "http://pkg.jenkins-ci.org/redhat/jenkins-1.653-1.1.noarch.rpm"
default[:jenkins_liatrio][:install_plugins][:githuburl] = "https://github.com/drewliatro/spring-petclinic/"
default[:jenkins_liatrio][:install_plugins][:giturl] = "https://github.com/drew-liatrio/spring-petclinic.git"
default[:jenkins_liatrio][:install_plugins][:hygieia_url] = "http://192.168.100.10:8080/api/"
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Drew Holt drew@liatrio.com