当我尝试构建管道时,它给了我一个错误“无法运行映像 '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*')
}
}
}
}