So I was trying to deploy a simple CD pipeline using docker by ssh’ing into my AWS Linux EC2 instance in WSL2 terminal. The job is failing everytime returning the following error:
Started by user Navdeep Singh Running as SYSTEM Building on the built-in node in workspace /var/lib/jenkins/workspace/todo-dev [todo-dev] $ /bin/sh -xe /tmp/jenkins6737039323529850559.sh + cd /home/ubuntu/project/django-todo /tmp/jenkins6737039323529850559.sh: 2: cd: can’t cd to /home/ubuntu/project/django-todo Build step ‘Execute shell’ marked build as failure Finished: FAILURE
RUN pip install django==3.2
COPY . .
RUN python manage.py migrate