[VOL-5010] - Clone unit tests to run on a v2.12 branch
makefiles/consts.mk
makefiles/virtualenv.mk
-----------------------
o Copy in latest library makefiles from repo:onf-make
global-jjb
packer/common-packer
--------------------
o Upgrade LinuxFoundation submodules to the latest version.
o global-jjb : from=0.53.3 to=0.86.7
o packaer/common-packer: from=0.1.0~22 to=0.12.1
.gitignore
makefiles/include.mk
makefiles/git/
makefiles/jjb/
--------------
o Added convenience make targets to view submodule versions.
o JJB target:jjb-gen added to prototype local pipeline edits.
o Logic is conditional, library will only load when targets are requested.
jjb/voltha-test/voltha-certification/
jjb/voltha-test/voltha-certification/README
jjb/voltha-test/voltha-certification/master.yaml
------------------------------------------------
o Create pseudo-branches within voltha testing so we can
o 'branch' (simple directory copy) at release time VS
o having to find and clone individual test suites from last release.
Change-Id: I3e0096d3326e76b3faa896d73183f9d28e946d06
diff --git a/makefiles/release/required.mk b/makefiles/release/required.mk
index 59366ce..620b827 100644
--- a/makefiles/release/required.mk
+++ b/makefiles/release/required.mk
@@ -18,8 +18,9 @@
# var ?= $(error ...) definitions are fatal to "make help" and others
# -----------------------------------------------------------------------
-voltha-release-mk-targets := null
+voltha-release-mk-targets := $(NULL)
voltha-release-mk-targets += create-jobs-release
+voltha-release-mk-targets += create-jobs-release-certification
voltha-release-mk-targets += create-jobs-release-nightly
voltha-release-mk-targets += create-jobs-release-units
voltha-release-mk-targets += sterile-create-jobs-release
diff --git a/makefiles/release/targets.mk b/makefiles/release/targets.mk
index a984051..44aaac7 100644
--- a/makefiles/release/targets.mk
+++ b/makefiles/release/targets.mk
@@ -32,6 +32,8 @@
# fatal to make help
voltha-version ?= $(error $(MAKE) voltha-verison=voltha-x.yy is required)\
+last-release := voltha-2.11
+
## Known releases
versions += master
versions += voltha-2.12
@@ -48,6 +50,7 @@
## Intent: Create branch driven pipeline test jobs.
## ---------------------------------------------------------------------------
## Build these deps to create a new release area
+create-jobs-release += create-jobs-release-certification
create-jobs-release += create-jobs-release-nightly
create-jobs-release += create-jobs-release-units
@@ -77,17 +80,16 @@
## ---------------------------------------------------------------------------
## NOTE: WIP - nightly jobs have not yet migrated from the mega job config file
## ---------------------------------------------------------------------------
-replace-ver := voltha-2.11
nightly-dir := $(release-mk-top)/jjb/voltha-test/voltha-nightly-jobs
nightly-yaml := $(nightly-dir)/$(voltha-version).yaml
-nightly-tmpl := $(nightly-dir)/$(replace-ver).yaml
+nightly-tmpl := $(nightly-dir)/$(last-release).yaml
create-jobs-release-nightly : $(nightly-yaml)
$(nightly-yaml) : $(nightly-tmpl)
@echo
@echo "** Create branch driven pipeline: nightly tests"
- sed -e 's/$(replace-ver)/$(voltha-version)/g' $< > $@
+ sed -e 's/$(last-release)/$(voltha-version)/g' $< > $@
$(HIDE)/bin/ls -l $(dir $@)
## ---------------------------------------------------------------------------
@@ -99,8 +101,36 @@
## ---------------------------------------------------------------------------
## Intent: Create branch driven nightly test jobs.
+## o Clone config for the last nightly release
+## o In-place edit to the latest version.
+## ---------------------------------------------------------------------------
+## NOTE: WIP - nightly jobs have not yet migrated from the mega job config file
+## ---------------------------------------------------------------------------
+certification-dir := $(release-mk-top)/jjb/voltha-test/voltha-certification
+certification-yaml := $(certification-dir)/$(voltha-version).yaml
+certification-tmpl := $(certification-dir)/$(last-release).yaml
+
+create-jobs-release-certification : $(certification-yaml)
+$(certification-yaml) : $(certification-tmpl)
+
+ @echo
+ @echo "** Create branch driven pipeline: nightly tests"
+ sed -e 's/$(last-release)/$(voltha-version)/g' $< > $@
+ $(HIDE)/bin/ls -l $(dir $@)
+
+## ---------------------------------------------------------------------------
+## Intent: Create branch driven nightly test jobs.
+## ---------------------------------------------------------------------------
+$(certification-tmpl):
+ @echo "ERROR: Yaml template branch does not exist: $@"
+ @echo 1
+
+
+## ---------------------------------------------------------------------------
+## Intent: Create branch driven nightly test jobs.
## ---------------------------------------------------------------------------
sterile-create-jobs-release :
+ $(RM) $(certification-yaml)
$(RM) $(nightly-yaml)
$(RM) -r $(units-yaml)