Skip to content

Commit cd8ee42

Browse files
committed
ci: cache python installers instead of python installations
1 parent b8fd192 commit cd8ee42

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pipeline {
121121
environment{
122122
PIP_CACHE_DIR='/tmp/pipcache'
123123
UV_TOOL_DIR='/tmp/uvtools'
124-
UV_PYTHON_INSTALL_DIR='/tmp/uvpython'
124+
UV_PYTHON_CACHE_DIR='/tmp/uvpython'
125125
UV_CACHE_DIR='/tmp/uvcache'
126126
}
127127
agent {
@@ -354,7 +354,7 @@ pipeline {
354354
PIP_CACHE_DIR='/tmp/pipcache'
355355
UV_CACHE_DIR='/tmp/uvcache'
356356
UV_TOOL_DIR='/tmp/uvtools'
357-
UV_PYTHON_INSTALL_DIR='/tmp/uvpython'
357+
UV_PYTHON_CACHE_DIR='/tmp/uvpython'
358358
}
359359
agent {
360360
docker {
@@ -451,7 +451,7 @@ pipeline {
451451
withEnv([
452452
'PIP_CACHE_DIR=/tmp/pipcache',
453453
'UV_TOOL_DIR=/tmp/uvtools',
454-
'UV_PYTHON_INSTALL_DIR=/tmp/uvpython',
454+
'UV_PYTHON_CACHE_DIR=/tmp/uvpython',
455455
'UV_CACHE_DIR=/tmp/uvcache',
456456
]){
457457
sh(
@@ -668,7 +668,7 @@ pipeline {
668668
docker{
669669
image 'python'
670670
label 'windows && docker && x86_64'
671-
args '--mount source=uv_python_install_dir,target=C:\\Users\\ContainerUser\\Documents\\uvpython'
671+
args '--mount source=uv_python_cache_dir,target=C:\\Users\\ContainerUser\\Documents\\uvpython'
672672
}
673673
}
674674
steps{
@@ -742,14 +742,14 @@ pipeline {
742742
environment{
743743
PIP_CACHE_DIR='/tmp/pipcache'
744744
UV_TOOL_DIR='/tmp/uvtools'
745-
UV_PYTHON_INSTALL_DIR='/tmp/uvpython'
745+
UV_PYTHON_CACHE_DIR='/tmp/uvpython'
746746
UV_CACHE_DIR='/tmp/uvcache'
747747
}
748748
agent {
749749
docker{
750750
image 'ghcr.io/astral-sh/uv:debian'
751751
label 'docker && linux'
752-
args '--mount source=uv_python_install_dir,target=/tmp/uvpython '
752+
args '--mount source=uv_python_cache_dir,target=/tmp/uvpython '
753753
}
754754
}
755755
when{

0 commit comments

Comments
 (0)