I have configured a task as check out source code from Bit-Bucket and it is working fine.
As per some comments I can see the below lines is working fine.
/usr/bin/python <<EOF
print "Hello, World!"
EOF
I an trying to run my python file from the check out source code.
As per the documentation got the current working directory from the below code,
${bamboo.working.directory}
Got the result :
/opt/atlassian/atlassian-bamboo-home-6.4.1/xml-data/build-dir/XXXXSCRIP-XXXXSCRIP-JOB1
and My repository path is
ProjectName/app.py
Added an script task and given the below as inline comments,
/usr/bin/python /opt/atlassian/atlassian-bamboo-home-6.4.1/xml-data/build-dir/XXXXSCRIP-XXXXSCRIP-JOB1/ProjectName/app.py
But, failed to execute. Please see the below error message.
python: can't open file '/opt/atlassian/atlassian-bamboo-home-6.4.1/xml-data/build-dir/XXXXSCRIP-XXXXSCRIP-JOB1/ProjectName/app.py': [Errno 2] No such file or directory
How do I solve this issue.
Edit: