docker python:2-alpine 在詹金斯管道中不起作用?

时间:2020-12-20 04:22:48

标签: python docker jenkins jenkins-pipeline

当我尝试构建管道时,它给了我一个错误“无法运行映像 'python:2-alpine'。错误:docker:来自守护进程的错误响应:工作目录 'C:/WINDOWS/system32/config/ systemprofile/AppData/Local/Jenkins/.jenkins/workspace/simple-python-pyinstaller-app/'

这是我的 jenkinsfile

pipeline {
    agent none 
    stages {
        stage('Build') { 
            agent {
                docker {
                    image 'python:2-alpine' 
                }
            }
            steps {
                sh 'python -m py_compile sources/add2vals.py sources/calc.py' 
                stash(name: 'compiled-results', includes: 'sources/*.py*') 
            }
        }
    }
}

0 个答案:

没有答案