Misc edits: makefiles/ and jjb templates.
Makefile
config.mk
makefiles/consts.mk
makefiles/lint/jjb.mk
---------------------
o config.mk - initial setup to support library and local makefiles.
o Move jjb lint target (~test) into jjb.mk, conditional logging verbosity.
makefiles/git-submodules.mk
---------------------------
o Restore skeleton git submodule dir(s) after 'make sterile' is used.
o Some external repo content placed under revision control.
o Odd state: make clean induces bogus git status 'deleted:'
jjb/api-test.yaml
-----------------
o Lint cleanup, fixed a complaint about replacment of non-expansive !include token.
jjb/defaults.yaml
-----------------
o jjb + LinuxFoundation submodules have gone stale.
o note download sources for a pending upgrade.
jenkins_jobs.errors.JenkinsJobsException:
Failed to find suitable template named '{project-name}-ci-jobs'
-----------------------------------------------------------------
o Finding 2020 changeset(s) also fail linting with this problem.
o Might have an intermittent failure to debug in here.
o Several jobs have run cleanly in the interim.
Change-Id: I20a0f3f0f731d6f312e5798af6049afd2e18c1c9
diff --git a/Makefile b/Makefile
index e299ee2..3478b0f 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@
# Makefile for testing JJB jobs in a virtualenv
.PHONY: all clean help test
.DEFAULT_GOAL := all
+# .DEFAULT_GOAL := lint-jjb
##-------------------##
##---] GLOBALS [---##
@@ -26,12 +27,10 @@
MAKEDIR ?= $(TOP)/makefiles
export SHELL := bash -e -o pipefail
-NO-LINT-MAKE := true
-NO-LINT-SHELL := true
-
##--------------------##
##---] INCLUDES [---##
##--------------------##
+-include config.mk
include $(MAKEDIR)/include.mk
VENV_DIR ?= venv-jjb
@@ -43,6 +42,12 @@
## -----------------------------------------------------------------------
## -----------------------------------------------------------------------
+# lint : lint-jjb
+lint-tox:
+ tox -e py310
+
+## -----------------------------------------------------------------------
+## -----------------------------------------------------------------------
.PHONY: test
test: $(venv-activate-script) $(JOBCONFIG_DIR)
$(activate) \