use /tmp for npm cache

This commit is contained in:
2022-09-26 19:34:53 -05:00
parent 507be0bcbc
commit 12a3b14190

View File

@ -134,7 +134,9 @@ pipeline {
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install --no-install-recommends -y yarn nodejs
mkdir -p /tmp/npm/cache
cd "${workspace}/lens"
export npm_config_cache=/tmp/npm/cache
make build
"""
}