diff options
Diffstat (limited to 'jobs/gerrit-verifications-dahdi.yml')
-rw-r--r-- | jobs/gerrit-verifications-dahdi.yml | 71 |
1 files changed, 40 insertions, 31 deletions
diff --git a/jobs/gerrit-verifications-dahdi.yml b/jobs/gerrit-verifications-dahdi.yml index 51bfb04..2cf9e95 100644 --- a/jobs/gerrit-verifications-dahdi.yml +++ b/jobs/gerrit-verifications-dahdi.yml @@ -1,25 +1,39 @@ - project: - name: gerrit-dahdi-linux - node: osmocom-gerrit-debian9 + name: gerrit-dahdi-linux-stable + type: stable + repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' + linux-ver: + - "linux-4.19.y" + - "linux-5.10.y" + - "linux-6.1.y" + jobs: + - 'gerrit-dahdi-linux-{type}-{linux-ver}' + +- project: + name: gerrit-dahdi-linux-torvalds + type: torvalds + repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git' linux-ver: - - "v4.19" - - "v5.10" - "master" jobs: - - 'gerrit-dahdi-linux-{linux-ver}' + - 'gerrit-dahdi-linux-{type}-{linux-ver}' + - job-template: - name: 'gerrit-dahdi-linux-{linux-ver}' + name: 'gerrit-dahdi-linux-{type}-{linux-ver}' project-type: freestyle - node: osmocom-gerrit-debian9 - concurrent: true + node: osmocom-gerrit + # These jobs need an entire linux tree. We try to avoid cloning it more + # often than necessary, therefore we keep the workspace directory between + # job runs. Jenkins creates a new workspace for each concurrent job, which + # ends up consuming a lot of disk space so we disable it here. Besides disk + # space considerations, this job would run fine concurrently. + concurrent: false retry-count: 0 # scm checkout properties: - build-discarder: days-to-keep: 30 num-to-keep: 120 - artifact-days-to-keep: -1 - artifact-num-to-keep: -1 description: | Pending gerrit code reviews of <a href="https://gerrit.osmocom.org/#/q/status:open+project:dahdi-linux">dahdi-linux</a> @@ -29,26 +43,12 @@ <b>Auto-generated using Jenkins Job Builder. DO NOT EDIT MANUALLY!</b> scm: - - git: - basedir: 'dahdi-linux' - url: 'https://gerrit.osmocom.org/dahdi-linux' - credentials-id: d5eda5e9-b59d-44ba-88d2-43473cb6e42d - branches: - - $GERRIT_BRANCH - refspec: $GERRIT_REFSPEC - choosing-strategy: gerrit - # When the gerrit git repository is configured to wipe-workspace, the - # linux.git clone gets removed as well. Cloning the linux repo takes a - # long time, so only clean both repos, don't remove them. - wipe-workspace: false - clean: - before: true - skip-tag: true - submodule: - recursive: true + # Let jenkins clone the big linux repository and keep it between builds + # (wipe-workspace is false). Clone dahdi-linux with code from gerrit in + # the shell part below. - git: basedir: 'linux' - url: 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git' + url: '{repo}' branches: - '{linux-ver}' refspec: '{linux-ver}' @@ -76,18 +76,27 @@ notbuilt: false silent: false escape-quotes: false - no-name-and-email: false - trigger-for-unreviewed-patches: true server-name: gerrit.osmocom.org builders: - shell: | + rm -rf dahdi-linux + git init dahdi-linux + cd dahdi-linux + git config advice.detachedHead false + git fetch \ + --depth=1 \ + https://gerrit.osmocom.org/dahdi-linux \ + "$GERRIT_REFSPEC" + git checkout FETCH_HEAD + cd .. + docker run \ --rm=true \ -e "KSRC=/linux" \ -v "$PWD/dahdi-linux:/build" \ -v "$PWD/linux:/linux" \ - "$USER/debian-buster-jenkins" \ + "$USER/debian-bookworm-build" \ timeout 10m su build -c /build/contrib/jenkins.sh publishers: |