Skip to content

Commit

Permalink
Support installation of gz-cmake to generate sources
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Oct 11, 2023
1 parent d052c57 commit 5c97163
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions jenkins-scripts/docker/gz-source-generation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ PKG_DIR=\$WORKSPACE/pkgs
SOURCES_DIR=\$WORKSPACE/sources
BUILD_DIR=\$SOURCES_DIR/build
# Need to intall all supported gz-cmake* packages in the platform
(apt-get install -y *gz-cmake* || apt-get install -y *ign-cmake*) || \
(echo "Can not find any ign-cmake/gz-cmake package" && exit 1)
cd \${WORKSPACE}
rm -fr \$SOURCES_DIR && mkdir \$SOURCES_DIR
git clone --depth 1 --branch ${PACKAGE}_${VERSION/\~/-} ${SOURCE_REPO_URI} \${SOURCES_DIR}
Expand Down
10 changes: 7 additions & 3 deletions jenkins-scripts/dsl/_configs_/OSRFSourceCreation.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ class OSRFSourceCreation
stringParam("EXTRA_OSRF_REPO",
default_params.find{ it.key == "EXTRA_OSRF_REPO"}?.value,
"For downstream jobs: OSRF extra repositories to add")
stringParam("LINUX_DISTRO",
'ubuntu',
default_params.find{ it.key == "LINUX_DISTRO"}?.value,
"Linux distribution to use to generate sources")
stringParam("DISTRO",
default_params.find{ it.key == "DISTRO"}?.value,
"Linux release inside LINUX_DISTRO to generate sources on")
}
}
}
Expand Down Expand Up @@ -78,10 +85,7 @@ class OSRFSourceCreation
shell("""\
#!/bin/bash -xe
# Use Jammy/amd64 as base image to generate sources
export DISTRO=jammy
export ARCH=amd64
/bin/bash -x ./scripts/jenkins-scripts/docker/gz-source-generation.bash
""".stripIndent()
)
Expand Down

0 comments on commit 5c97163

Please sign in to comment.