Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

django - ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' in Jenkins

I am trying to deploy Django app in windows using Jenkins. It is getting "no such file or directory" but the file is exists. How do I solve that issue. anyone help me? enter image description here

Error as

C:Windowssystem32configsystemprofileAppDataLocalJenkins.jenkinsworkspaceDNACMonitoring>dir
 Volume in drive C has no label.
 Volume Serial Number is 5C8B-B82B

 Directory of C:Windowssystem32configsystemprofileAppDataLocalJenkins.jenkinsworkspaceDNACMonitoring

01/07/2021  08:50 PM    <DIR>          .
01/07/2021  08:50 PM    <DIR>          ..
01/07/2021  01:44 PM           131,072 db.sqlite3
01/07/2021  08:39 PM                42 deploy_prod.sh
01/07/2021  08:28 PM    <DIR>          dnac_monitoring
01/07/2021  08:50 PM               926 Jenkinsfile
01/07/2021  12:28 PM    <DIR>          liveapi
01/07/2021  04:29 PM               656 manage.py
01/07/2021  12:28 PM                19 README.md
01/07/2021  04:29 PM                31 requirements.txt
01/07/2021  12:28 PM    <DIR>          static
01/07/2021  08:28 PM    <DIR>          templates
01/07/2021  12:28 PM    <DIR>          utilization
01/07/2021  12:28 PM    <DIR>          venv
               6 File(s)        132,746 bytes
               8 Dir(s)  87,394,852,864 bytes free

C:Windowssystem32configsystemprofileAppDataLocalJenkins.jenkinsworkspaceDNACMonitoring>pip install -r requirements.txt 
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

C:Windowssystem32configsystemprofileAppDataLocalJenkins.jenkinsworkspaceDNACMonitoring>exit 1 
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
question from:https://stackoverflow.com/questions/65623689/error-could-not-open-requirements-file-errno-2-no-such-file-or-directory-r

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...