项目作者: juanjmerono

项目描述 :
Jenkins configuration to build nightly servers.
高级语言: Shell
项目地址: git://github.com/juanjmerono/sakai-nightly.git
创建时间: 2017-01-31T12:25:51Z
项目社区:https://github.com/juanjmerono/sakai-nightly

开源协议:

下载


Sakai Nightly Pipeline

Keep a test server updated.
This project creates a Jenkins installation with a Multibranch Pipeline Job, that deploy some test servers for Sakai.

Installation

To deploy your custom jenkins server you only need docker/docker-compose installed and follow this steps:

  1. - Clone this repo.
  2. - Go to `docker-jenkins` folder.
  3. - Create `variables.env` file to customize your deployment. (See demo_variables.env file)
  4. - Add some oracle credentials in order to download jdk8.
  5. - ORACLE_USER=xxx
  6. - ORACLE_PASS=yyy
  7. - Add Etherpad configuration.
  8. - ETHPAD_URL=...
  9. - ETHPAD_API_KEY=...
  10. - Also add VIRTUAL_HOST variable with the domain of your jenkins server.
  11. - VIRTUAL_HOST=jenkins.mydomain
  12. - You're going to create one test server for each branch, so set the server name for that servers.
  13. - SERVER_NAME_<branch_name>=mybranch.mydomain
  14. - Also configure database names:
  15. - SAKAI_DB_USER, SAKAI_DB_PASS and SAKAI_DB_NAME
  16. - Add certs folder with all certificates for all servers if you want to use ssl.
  17. - jenkins.mydomain.crt,jenkins.mydomain.key,mybranch.mydomain.crt,...
  18. - If you don't want SSL at all add HTTPS_METHOD=nohttps in variables.env
  19. - Ensure that you have /opt/jenkins_home and /opt/jenkins folders with permisions for UID 1000 (container jenkins user)
  20. - The `jenkins_home` will contain every job workspace.
  21. - The `jenkins` folder will contain the .m2 repository.
  22. - Type `docker-compose -p nightly up -d`
  23. - `nightly` name is important, the network is based on that name.

Run

After jenkins server is up you just have to run Multibranch Pipeline Job to get a Sakai nightly server for each branch up and running.