When I am building a declarative Jenkins pipeline for my python project, I get the following error message when using Pip.
WARNING: The directory '/.cache/pip' or its parent directory is not owned or is not writable by the current user.
Run Code Online (Sandbox Code Playgroud)
My Jenkinsfile:
#!groovy
pipeline {
agent {
docker {
image 'python:3.7.5'
}
}
stages {
stage('Build Dependencies') {
steps {
sh "pip install -r requirements.txt"
}
}
}
post {
always {
sh "Job finished"
}
}
}
Run Code Online (Sandbox Code Playgroud)
How …