IQSS / dataverse-jenkins

configs and docs for running continuous integration for Dataverse in Jenkins
0 stars 1 forks source link

How to install Jenkins to build and test Dataverse #1

Closed pdurbin closed 4 years ago

pdurbin commented 5 years ago

Last week @donsizemore set up https://jenkins.dataverse.org (screenshot below) for the Dataverse community but I'd like to know how to install Jenkins myself and start building and testing Dataverse. I imagine that anyone who runs a fork of Dataverse would want this as well. Knowing Don, he's using Ansible to install and configure Jenkins. It would be great to have the playbook and a README to explain how to use it. Thanks in advance!

Screen Shot 2019-04-08 at 9 27 51 AM
pdurbin commented 5 years ago

@donsizemore another thought is to add a Vagrantfile as well as a README. This is what I call "executable documentation": 😄

Screen Shot 2019-04-08 at 10 09 49 AM

From https://www.slideshare.net/philipdurbin/how-to-run-a-successful-open-source-java-ee-project via http://wiki.greptilian.com/talks/2017/javaone-how-to-run-an-open-source-project/

pdurbin commented 5 years ago

http://itzikb.com/installing-jenkins-using-ansible/ looks helpful. I just got "Welcome to Jenkins" at http://ec2-35-153-208-116.compute-1.amazonaws.com:8080 like this...

Screen Shot 2019-06-04 at 4 32 56 PM

... by doing this:

[root@ip-172-31-39-101 ~]# vim jenkins.yml
[root@ip-172-31-39-101 ~]# cat jenkins.yml
- name: Installing Jenkins
  hosts: localhost
  roles:
     - { role: geerlingguy.jenkins, jenkins_plugins: "" }
[root@ip-172-31-39-101 ~]# 

jenkins.yml.txt

yum install /usr/bin/ansible-playbook # ansible-2.4.2.0-2.el7.noarch
ansible-galaxy install -p roles geerlingguy.jenkins
ansible-playbook jenkins.yml

I can log in with admin/admin but when I try to create a new job...

Screen Shot 2019-06-04 at 4 36 51 PM

... I'm not sure how to get config.xml from this repo into it.

pdurbin commented 5 years ago

@donsizemore if you could be so kind, please take a look at pull request #6 which I just opened. Thanks!

pdurbin commented 5 years ago

Here's the script I using to spin up EC2 instances to install Jenkins on:

ec2-create-instance.sh.txt

This is almost the same script as the one at http://guides.dataverse.org/en/4.14/developers/deployment.html#download-and-run-the-create-instance-script

I'm planning on cleaning it up and adding it to this repo.

donsizemore commented 4 years ago

do #15 and #16 address this?

pdurbin commented 4 years ago

@donsizemore probably. Maybe I'll use this issue to represent one final test of all the stuff we just merged in pull request #16. 😄

pdurbin commented 4 years ago

@donsizemore meh. At standup today we decided to close this issue without extra testing. Nothing has changed on master since I tested in my branch. Thanks so much for making it so easy to spin up Jenkins to test Dataverse and friends!