From 3e4e3591cd945e067575df998b69bd2d74c9626b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 9 Oct 2024 10:25:37 +0200 Subject: [PATCH] fix(ci)_: move nim cache to workspace tmp folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit An error has shown that Nim compilation uses cache folder in `jenkins` home: ``` clang: error: no such file or directory: '/Users/jenkins/.cache/nim/nimsuggest_r/@m..@slib@swrappers@slinenoise@slinenoise.c.o' ``` This is a bad idea as parallel CI builds can result in very bizzarre bugs. Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.linux | 2 +- ci/Jenkinsfile.linux-nix | 2 +- ci/Jenkinsfile.macos | 2 +- ci/Jenkinsfile.windows | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index 26dc757195..41ec1b9407 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -35,7 +35,7 @@ pipeline { string( name: 'NIMFLAGS', description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', - defaultValue: '--colors:off' + defaultValue: "--colors:off --nimcache:${env.WORKSPACE_TMP}/nimcache" ) booleanParam( name: 'USE_MOCKED_KEYCARD_LIB', diff --git a/ci/Jenkinsfile.linux-nix b/ci/Jenkinsfile.linux-nix index 93530de41b..eb9371612b 100644 --- a/ci/Jenkinsfile.linux-nix +++ b/ci/Jenkinsfile.linux-nix @@ -27,7 +27,7 @@ pipeline { string( name: 'NIMFLAGS', description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', - defaultValue: '--colors:off' + defaultValue: "--colors:off --nimcache:${env.WORKSPACE_TMP}/nimcache" ) booleanParam( name: 'USE_MOCKED_KEYCARD_LIB', diff --git a/ci/Jenkinsfile.macos b/ci/Jenkinsfile.macos index 0bfd1b806c..13389ccd0c 100644 --- a/ci/Jenkinsfile.macos +++ b/ci/Jenkinsfile.macos @@ -29,7 +29,7 @@ pipeline { string( name: 'NIMFLAGS', description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', - defaultValue: '--colors:off' + defaultValue: "--colors:off --nimcache:${env.WORKSPACE_TMP}/nimcache" ) booleanParam( name: 'USE_MOCKED_KEYCARD_LIB', diff --git a/ci/Jenkinsfile.windows b/ci/Jenkinsfile.windows index 8a524b5a83..32070e9e3f 100644 --- a/ci/Jenkinsfile.windows +++ b/ci/Jenkinsfile.windows @@ -26,7 +26,7 @@ pipeline { string( name: 'NIMFLAGS', description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', - defaultValue: '--colors:off' + defaultValue: "--colors:off --nimcache:${env.WORKSPACE_TMP}/nimcache" ) booleanParam( name: 'USE_MOCKED_KEYCARD_LIB',