[英]File not found error in jenkinsfile script
誰能解釋為什么我收到以下錯誤:+ python unittests.py python:無法打開文件'unittests.py':[Errno 2]沒有這樣的文件或目錄
這是我的詹金斯文件:
pipeline {
agent any
stages {
stage('prepare') {
steps {
git credentialsId: 'git-cred', url: 'https://github.com/nada809/DockerProject.git'
}
}
stage('Test') {
agent {
docker {
image 'python:3.8-slim-buster'
}
}
steps {
sh 'pip install flask && pip install xmlrunner'
dir("app"){
sh 'python unittests.py'}
}
}
}
}
unittests 文件位於 app 文件夾下。 提前致謝。
“main”似乎是您的新默認分支(為空)。 請嘗試
僅供參考:似乎 GitHub 確實應用了他們最近的計划來擺脫“主”分支
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.