diff --git a/jenkins-scripts/docker/gz-source-generation.bash b/jenkins-scripts/docker/gz-source-generation.bash index fefa7db9e..66252259e 100644 --- a/jenkins-scripts/docker/gz-source-generation.bash +++ b/jenkins-scripts/docker/gz-source-generation.bash @@ -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 +(sudo apt-get install -y *gz-cmake* || sudo 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} diff --git a/jenkins-scripts/dsl/_configs_/OSRFReleasepy.groovy b/jenkins-scripts/dsl/_configs_/OSRFReleasepy.groovy index d701641f7..5c7ba392d 100644 --- a/jenkins-scripts/dsl/_configs_/OSRFReleasepy.groovy +++ b/jenkins-scripts/dsl/_configs_/OSRFReleasepy.groovy @@ -74,6 +74,7 @@ class OSRFReleasepy echo "releasing \${n} (from branch \${src_branch})" python3 ./scripts/release.py \${dry_run_str} "\${PACKAGE}" "\${VERSION}" "\${PASS}" \${extra_osrf_repo} \ + --source-tarball-uri \${SOURCE_TARBALL_URI} \ --release-repo-branch \${RELEASE_REPO_BRANCH} \ --upload-to-repo \${UPLOAD_TO_REPO} > log || echo "MARK_AS_UNSTABLE" echo " - done" diff --git a/jenkins-scripts/dsl/_configs_/OSRFSourceCreation.groovy b/jenkins-scripts/dsl/_configs_/OSRFSourceCreation.groovy index 552336e8b..4e61ca7d9 100644 --- a/jenkins-scripts/dsl/_configs_/OSRFSourceCreation.groovy +++ b/jenkins-scripts/dsl/_configs_/OSRFSourceCreation.groovy @@ -24,6 +24,15 @@ class OSRFSourceCreation stringParam("VERSION", default_params.find{ it.key == "VERSION"}?.value, "Packages version to be built or nightly (enable nightly build mode)") + stringParam("OSRF_REPOS_TO_USE", + default_params.find{ it.key == "OSRF_REPOS_TO_USE"}?.value, + "OSRF repos name to use when building the package") + stringParam("LINUX_DISTRO", + 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") stringParam("RELEASE_VERSION", default_params.find{ it.key == "RELEASE_VERSION"}?.value, "For downstream jobs: Packages release version") @@ -78,10 +87,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() ) diff --git a/jenkins-scripts/dsl/test.dsl b/jenkins-scripts/dsl/test.dsl index 66b93cde4..4f3fc45d9 100644 --- a/jenkins-scripts/dsl/test.dsl +++ b/jenkins-scripts/dsl/test.dsl @@ -29,8 +29,8 @@ releasepy_job.with { // gz source testing job def gz_source_job = job("_test_gz_source") OSRFSourceCreation.create(gz_source_job, [ - PACKAGE: "gz-cmake3" , - SOURCE_REPO_URI: "https://github.com/gazebosim/gz-cmake.git"]) + PACKAGE: "gz-plugin2" , + SOURCE_REPO_URI: "https://github.com/gazebosim/gz-plugin.git"]) OSRFSourceCreation.call_uploader_and_releasepy(gz_source_job, '_test_repository_uploader', '_test_releasepy')