jobs/master,gerrit: fix pysim, sysmo-usim-tool

Don't attempt to create the CCACHE_DIR and chown it to osmocom-build for
the simtester jenkins node, and more generally all that were not
created with the ansible provisioning scripts. In case of simtester,
there is no osmocom-build user and we don't have the space there to use
ccache.

Fix for:
  chown: invalid user: ‘osmocom-build:osmocom-build’

Related: OS#5848
Change-Id: I339d9ba4ad0c959d7325820eb53bfa1f0e04c164
This commit is contained in:
Oliver Smith 2023-01-24 14:17:54 +01:00
parent 30d89506cd
commit 126be0c9af
2 changed files with 8 additions and 8 deletions

View File

@ -61,6 +61,10 @@
-w /build -i -u build \
-v "$PWD:/build" \
docker_run_ccache: |
CCACHE_DIR="$HOME/ccache/gerrit-verifications"
mkdir -p "$CCACHE_DIR"
chown osmocom-build:osmocom-build "$CCACHE_DIR"
docker run --rm=true \
--cap-add SYS_PTRACE \
-e ASCIIDOC_WARNINGS_CHECK="1" \
@ -695,10 +699,6 @@
description: set by gerrit-{repos} job
builders:
- shell: |-
CCACHE_DIR="$HOME/ccache/gerrit-verifications"
mkdir -p "$CCACHE_DIR"
chown osmocom-build:osmocom-build "$CCACHE_DIR"
- shell: '{obj:cmd}'
publishers:

View File

@ -39,6 +39,10 @@
-v "$PWD:/build" \
-v "$HOME/.ssh:/home/build/.ssh:ro" \
docker_run_ccache: |
CCACHE_DIR="$HOME/ccache/master-builds"
mkdir -p "$CCACHE_DIR"
chown osmocom-build:osmocom-build "$CCACHE_DIR"
docker run --rm=true \
--cap-add SYS_PTRACE \
-e ASCIIDOC_WARNINGS_CHECK="1" \
@ -566,10 +570,6 @@
- timed: "H H * * *"
builders:
- shell: |-
CCACHE_DIR="$HOME/ccache/master-builds"
mkdir -p "$CCACHE_DIR"
chown osmocom-build:osmocom-build "$CCACHE_DIR"
- shell: '{obj:cmd}'
publishers: