osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/30779 )
Change subject: obs: put git submodules into source packages ......................................................................
obs: put git submodules into source packages
We started using git submodules with osmo-trx. Adjust the obs scripts to actually make the git submodules part of the source packages.
Note that this didn't fail in jenkins before with the rpm build verification, as jenkins updates git submodules on its own.
Fix for: [ 165s] Makefile.am:32: error: required directory ./osmocom-bb/src/host/trxcon does not exist
Change-Id: I51b423f3885d6ead5c21a83bdf8ef6051dc34fe3 --- M scripts/obs/lib/git.py 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/79/30779/1
diff --git a/scripts/obs/lib/git.py b/scripts/obs/lib/git.py index 8081a54..db1509b 100644 --- a/scripts/obs/lib/git.py +++ b/scripts/obs/lib/git.py @@ -56,6 +56,8 @@ lib.run_cmd(["git", "checkout", "-f", branch], cwd=repo_path) print(f"{project}: 'git reset --hard {branch}'") lib.run_cmd(["git", "reset", "--hard", branch], cwd=repo_path) + print(f"{project}: 'git submodule update --init'") + lib.run_cmd(["git", "submodule", "update", "--init"], cwd=repo_path)
def checkout_from_review(project, gerrit_id):