小编Rah*_*hul的帖子

Pip安装不与jenkins一起工作?

那是我的詹金斯文件.

pipeline {
    agent none
    stages {
        stage('Build') {
            agent {
                docker {
                    image 'python:3-alpine'
                }
            }
            steps {
                sh 'pip install --user -r requirements.txt'
                sh 'python WebChecker.py'
            }
            post {
                always {
                    junit 'output.xml'
                }
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

当我在詹金斯运行时,我得到了跟随

[urltester] Running shell script

+ pip install --user -r requirements.txt

The directory '/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. …
Run Code Online (Sandbox Code Playgroud)

python pip jenkins docker

13
推荐指数
2
解决办法
4043
查看次数

标签 统计

docker ×1

jenkins ×1

pip ×1

python ×1