From c4924d2657e2a85a10568c5a0a98989f7b09aa96 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 16 Nov 2022 12:33:53 +0100 Subject: [PATCH] jobs/osmocom-api: add jenkins-job-builder config Add a jenkins-job-builder configuration for the existing Osmocom_API job and refactor it to not use the deprecated multi-scm plugin. Also update the git clone urls. Related: OS#5763 Change-Id: Ia518979307ce633ccd2c431a8e8eea866da2a50d --- jobs/osmocom-api.yml | 89 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 jobs/osmocom-api.yml diff --git a/jobs/osmocom-api.yml b/jobs/osmocom-api.yml new file mode 100644 index 00000000..f91779da --- /dev/null +++ b/jobs/osmocom-api.yml @@ -0,0 +1,89 @@ +- job: + concurrent: false + description: This job builds the doxygen API documentation for latest libosmo* + and uploads it to https://downloads.osmocom.org/api/latest/ + name: Osmocom_API + node: osmocom-master-debian9 + project-type: freestyle + publishers: + - email: + notify-every-unstable-build: true + recipients: jenkins-notifications@lists.osmocom.org + triggers: + - timed: "H H * * *" + wrappers: + - ssh-agent-credentials: + users: + - api@osmocom + parameters: + - string: + name: BRANCH + description: osmo-ci.git branch + default: 'master' + scm: + - git: + branches: + - '$BRANCH' + url: https://gerrit.osmocom.org/osmo-ci + git-config-name: 'Jenkins Builder' + git-config-email: 'jenkins@osmocom.org' + wipe-workspace: true + builders: + - shell: | + # Repositories for which doxygen documentation will be generated and + # uploaded, also dependencies which need to be built + repos_api=" + libosmocore + libosmo-abis + libosmo-dsp + libosmo-netif + libosmo-sccp + osmo-gmr" + + # Source common.sh from osmo-ci.git for osmo_git_clone_url() + . scripts/common.sh + + # Put git repos and install data in a subdir, so it isn't in the root + # of the cloned osmo-ci.git repository + mkdir _osmocom_api + cd _osmocom_api + + # Prepare pkgconfig path + export PKG_CONFIG_PATH=$PWD/install/lib/pkgconfig + mkdir -p "$PKG_CONFIG_PATH" + + # Prepare known_hosts + cat > known_hosts <