Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/idempiere-devops/idempiere-jenkins-sandbox

Sanbox to learn CI/CD
https://github.com/idempiere-devops/idempiere-jenkins-sandbox

devops idempiere jenkins vagrant

Last synced: 30 days ago
JSON representation

Sanbox to learn CI/CD

Awesome Lists containing this project

README

        

# iDempiere/Jenkins Sandbox

This repository aims to help you learn how to do CI/CD with iDempiere.

## Prerequisites

- [Vagrant](https://developer.hashicorp.com/vagrant/install#linux)
- [Virtual Box](https://www.virtualbox.org/wiki/Linux_Downloads)

## Steps

1. [Configure Jenkins](doc/1_CONFIGURE_JENKINS.md)
2. [Configure iDempiere](doc/2_CONFIGURE_IDEMPIERE.md)
3. [Add an Additional Agent](doc/3_ADD_AGENT.md)
4. [Compile and Deploy Plugin](doc/4_COMPILE_AND_DEPLOY_A_PLUGIN.md)

## Common Commands

Start virtual machines:

```shell
vagrant up
```

Stop:

```shell
vagrant halt
```

Restart:

```shell
vagrant reload jenkins
vagrant reload idempiere
```

Show ports:

```shell
vagrant port jenkins
vagrant port idempiere
```

Open terminal:

```shell
vagrant ssh jenkins
vagrant ssh idempiere
```

Destroy virtual machines:

```shell
vagrant destroy
```

## Troubleshooting

### IP Range Not Allowed

If you've received this error when running `vagrant up`:

> The IP address configured for the host-only network is not within the
allowed ranges. Please update the address used to be within the allowed
ranges and run the command again.

Yo can change the ips here:

```ruby
Vagrant.configure("2") do |config|
# ...
config.vm.define "jenkins" do |jenkins|
jenkins.vm.network "private_network", ip: "PUT A VALID IP"
# ...
end

config.vm.define "idempiere" do |idempiere|
idempiere.vm.network "private_network", ip: "PUT A VALID IP"
# ...
end
end
```

Or visit: for more information.

## References

- [Jenkinsfile](https://www.jenkins.io/doc/book/pipeline/jenkinsfile/)