Updated git submodules
authorAlok Anand <alok4nand@gmail.com>
Mon, 21 Aug 2017 16:48:44 +0000 (22:18 +0530)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 21 Aug 2017 21:57:03 +0000 (21:57 +0000)
Project: integration/packaging master 429f2ad1a624cceae5e7a84294dbe4afb5e4fee4

Make a common .gitignore file

Change-Id: If00e8b16d7707d2ae8f2da13aa61cd3b64b9dd98
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Remove YAML logic from DEB cache and templates

As the YAML logic has been removed from building DEB packages these
functionalities are no more relevant.

Change-Id: Idaa1949bdf5023700aae7a0bd56510ee0c563155
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Move rpm & deb build logic into packages/

This commit organizes deb/ and rpm/ into packages/ . build.py, vars.py,
requirements.txt are moved into the base of packages/ to work with the
refactored logic.

Change-Id: Ife0b6a1382ce906a18d539d132569158860620fa
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Build deb's using common build.py

Refactoring aims at creating a common entry point for both rpms and debs
building logic. Using a common build.py, debain will enjoy the same
advancements made earlier in rpm's build logic.

Change-Id: I038e40c7486cc8243feec9a7bb1dc407018f9b41
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Move rpm/requirements.txt

requirements.txt in the base dir will serve a common requirements file
for both rpm/deb building logic.

Change-Id: I64c3da2be9997fa344b62bdded87bbb5aa9cbc6b
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Remove YAML logic from RPM's spec & cache

As the YAML logic has been removed from building RPM packages these
functionalities are no more relevant.

Change-Id: I67c393bd02e02d7248acb022fc16363c15f6bab6
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Update RPM spec file to use `java_version`

`java_version` variable is used by deb to provide java version required
as dependency for ODL package. This patch update RPM build logic as well
as spec file to use the variable `java_version` instead of hard coded
value.

Change-Id: Iac74fb751d3e6fedfea25badc5bdcdb7e498a66a
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Add `get_java_version` func

The function returns the `java_version` variable which helps packages to
determine the needed version of java dependency.

Change-Id: Ifbe044be565ef597e42efa529858e509defd403f
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Change `rpm_release` to `pkg_version`

The RPM build logic uses a var called rpm_version The deb uses a more
generic name, pkg_version. Changing `rpm_release` to `pkg_version` makes
it easier to have consistent names.

Change-Id: Idb2eaa824f78222353c62755d25186ec42b761fa
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Refactor snapshot url fetch logic

The logic to build snapshots is a key difference between rpm and deb
pipeline. `build_rpm_snapshot()` is essentially snapshot url fetch logic
plus `build_rpm()`, refactoring this logic makes it simple to add
snapshot build feature to deb pipeline.

Change-Id: I1369df471d546c4fdd55425830cdb2b86dda5bf9
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Relocate `extract_version()` & `get_sysd_commit()`

The functions named above are useful to collect variables for both rpm
and deb building logic. The common build.py entry point can call these
functions from vars.py

Change-Id: I05fac7b6f09693233ca54a317af2ea7323814344
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Relocate entry function of `rpm/build.py`

RPM build script can be used as a reference for building
a common entry point for both rpm and deb build pipelines.
This commit also creates the new common entry point in
`packages/build.py` for further refactoring.

Change-Id: Idee82deced213ce5963587eb376c19e2c5c2e4ac
Signed-off-by: Alok Anand <alok4nand@gmail.com>
docs/submodules/integration/packaging

index 761a7148381e8bcb7626f004508f10bf755854eb..429f2ad1a624cceae5e7a84294dbe4afb5e4fee4 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 761a7148381e8bcb7626f004508f10bf755854eb
+Subproject commit 429f2ad1a624cceae5e7a84294dbe4afb5e4fee4