shapeblue / mbx

🐒📦 Build, run, test monkey-powered local CloudStack dev/qa env
22 stars 7 forks source link

Adding support for packaging #1

Closed davidjumani closed 3 years ago

davidjumani commented 3 years ago

Adding support for packaging. Addition of the following packaging / build parameters :

Takes between 30-40 min to build

mbx build apache/cloudstack 4.11 centos6     [branch]
mbx build apache/cloudstack 4.15.0.0 debian  [tag]
mbx build apache/cloudstack 4716 debian      [PR]
/export/testing/builds/
├── 4.11
│   └── centos6
│       ├── cloudstack-agent-4.11.4.0-1.el6.x86_64.rpm
│       ├── cloudstack-baremetal-agent-4.11.4.0-1.el6.x86_64.rpm
│       ├── cloudstack-cli-4.11.4.0-1.el6.x86_64.rpm
│       ├── cloudstack-common-4.11.4.0-1.el6.x86_64.rpm
│       ├── cloudstack-integration-tests-4.11.4.0-1.el6.x86_64.rpm
│       ├── cloudstack-management-4.11.4.0-1.el6.x86_64.rpm
│       ├── cloudstack-marvin-4.11.4.0-1.el6.x86_64.rpm
│       ├── cloudstack-mysql-ha-4.11.4.0-1.el6.x86_64.rpm
│       └── cloudstack-usage-4.11.4.0-1.el6.x86_64.rpm
├── 4.15.0.0
│   └── debian
│       ├── cloudstack-agent_4.15.0.0_all.deb
│       ├── cloudstack-common_4.15.0.0_all.deb
│       ├── cloudstack-docs_4.15.0.0_all.deb
│       ├── cloudstack-integration-tests_4.15.0.0_all.deb
│       ├── cloudstack-management_4.15.0.0_all.deb
│       ├── cloudstack-marvin_4.15.0.0_all.deb
│       └── cloudstack-usage_4.15.0.0_all.deb
├── master
│   └── centos8
│       ├── cloudstack-agent-4.16.0.0-1.el8.x86_64.rpm
│       ├── cloudstack-baremetal-agent-4.16.0.0-1.el8.x86_64.rpm
│       ├── cloudstack-cli-4.16.0.0-1.el8.x86_64.rpm
│       ├── cloudstack-common-4.16.0.0-1.el8.x86_64.rpm
│       ├── cloudstack-integration-tests-4.16.0.0-1.el8.x86_64.rpm
│       ├── cloudstack-management-4.16.0.0-1.el8.x86_64.rpm
│       ├── cloudstack-marvin-4.16.0.0-1.el8.x86_64.rpm
│       ├── cloudstack-mysql-ha-4.16.0.0-1.el8.x86_64.rpm
│       ├── cloudstack-ui-4.16.0.0-1.el8.x86_64.rpm
│       └── cloudstack-usage-4.16.0.0-1.el8.x86_64.rpm
└── pr
    └── 4716
        └── debian
            ├── cloudstack-agent_4.15.1.0-SNAPSHOT_all.deb
            ├── cloudstack-common_4.15.1.0-SNAPSHOT_all.deb
            ├── cloudstack-docs_4.15.1.0-SNAPSHOT_all.deb
            ├── cloudstack-integration-tests_4.15.1.0-SNAPSHOT_all.deb
            ├── cloudstack-management_4.15.1.0-SNAPSHOT_all.deb
            ├── cloudstack-marvin_4.15.1.0-SNAPSHOT_all.deb
            ├── cloudstack-ui_4.15.1.0-SNAPSHOT_all.deb
            └── cloudstack-usage_4.15.1.0-SNAPSHOT_all.deb
rohityadavcloud commented 3 years ago

I was thinking the command/usage would be something like:

mbx build <repo url or PR url> <tag|sha|branch name> <option distro: centos6/7/8/debian otherwise builds for all by default>
rohityadavcloud commented 3 years ago

@davidjumani is this good for testing, does it work?

davidjumani commented 3 years ago

@rhtyd Yes working

rohityadavcloud commented 3 years ago

@davidjumani what is the 'local directory' task, is to publish the repos locally?

davidjumani commented 3 years ago

It's to use a local directory containing the acs repo in which the user might have made changes that are not yet pushed to any branch but can be skipped for now