Console Output Started by user Ishwar Shinde Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/django-todo-app-delivery The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/django-todo-app-delivery/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/ishwarshinde041/Jenkins-CI-CD-project.git # timeout=10 Fetching upstream changes from https://github.com/ishwarshinde041/Jenkins-CI-CD-project.git > git --version # timeout=10 > git --version # 'git version 2.34.1' > git fetch --tags --force --progress -- https://github.com/ishwarshinde041/Jenkins-CI-CD-project.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision c2dca3f30890792a3f6eb6078f05f4d886b40129 (refs/remotes/origin/main) > git config core.sparsecheckout # timeout=10 > git checkout -f c2dca3f30890792a3f6eb6078f05f4d886b40129 # timeout=10 Commit message: "Update index.html" > git rev-list --no-walk c2dca3f30890792a3f6eb6078f05f4d886b40129 # timeout=10 [django-todo-app-delivery] $ /bin/sh -xe /tmp/jenkins4033466684745059068.sh + echo Code cloned... Code cloned... + docker build . -t django-app Sending build context to Docker daemon 2.67MB Step 1/6 : FROM python:3.9 3.9: Pulling from library/python de4cac68b616: Pulling fs layer d31b0195ec5f: Pulling fs layer 9b1fd34c30b7: Pulling fs layer c485c4ba3831: Pulling fs layer 9c94b131279a: Pulling fs layer 863530a48f51: Pulling fs layer 6738828c119e: Pulling fs layer d271c014c3a0: Pulling fs layer c485c4ba3831: Waiting 9c94b131279a: Waiting 863530a48f51: Waiting 6738828c119e: Waiting d271c014c3a0: Waiting d31b0195ec5f: Verifying Checksum d31b0195ec5f: Download complete de4cac68b616: Verifying Checksum de4cac68b616: Download complete 9b1fd34c30b7: Verifying Checksum 9b1fd34c30b7: Download complete 9c94b131279a: Verifying Checksum 9c94b131279a: Download complete 863530a48f51: Verifying Checksum 863530a48f51: Download complete 6738828c119e: Verifying Checksum 6738828c119e: Download complete d271c014c3a0: Verifying Checksum d271c014c3a0: Download complete c485c4ba3831: Verifying Checksum c485c4ba3831: Download complete de4cac68b616: Pull complete d31b0195ec5f: Pull complete 9b1fd34c30b7: Pull complete c485c4ba3831: Pull complete 9c94b131279a: Pull complete 863530a48f51: Pull complete 6738828c119e: Pull complete d271c014c3a0: Pull complete Digest: sha256:9bae2a5ce72f326c8136d517ade0e9b18080625fb3ba7ec10002e0dc99bc4a70 Status: Downloaded newer image for python:3.9 ---> 8bdfd6cc4bbf Step 2/6 : WORKDIR app ---> Running in 61650cd643fd Removing intermediate container 61650cd643fd ---> 976056a2d895 Step 3/6 : COPY . /app ---> 5b94f1ad0061 Step 4/6 : RUN pip install -r requirements.txt ---> Running in c3dacf8bf4ed Collecting asgiref==3.2.3 Downloading asgiref-3.2.3-py2.py3-none-any.whl (18 kB) Collecting Django==3.0.3 Downloading Django-3.0.3-py3-none-any.whl (7.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 5.6 MB/s eta 0:00:00 Collecting django-cors-headers==3.2.1 Downloading django_cors_headers-3.2.1-py3-none-any.whl (14 kB) Collecting djangorestframework==3.11.0 Downloading djangorestframework-3.11.0-py3-none-any.whl (911 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 911.2/911.2 kB 42.1 MB/s eta 0:00:00 Collecting pytz==2019.3 Downloading pytz-2019.3-py2.py3-none-any.whl (509 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 509.2/509.2 kB 45.7 MB/s eta 0:00:00 Collecting sqlparse==0.3.0 Downloading sqlparse-0.3.0-py2.py3-none-any.whl (39 kB) Installing collected packages: pytz, asgiref, sqlparse, Django, djangorestframework, django-cors-headers Successfully installed Django-3.0.3 asgiref-3.2.3 django-cors-headers-3.2.1 djangorestframework-3.11.0 pytz-2019.3 sqlparse-0.3.0 [91mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv [0m[91m [notice] A new release of pip is available: 23.0.1 -> 23.2.1 [notice] To update, run: pip install --upgrade pip [0mRemoving intermediate container c3dacf8bf4ed ---> 3d6b4bb36bd2 Step 5/6 : EXPOSE 8001 ---> Running in 56dd98811220 Removing intermediate container 56dd98811220 ---> 96ed2bc70110 Step 6/6 : CMD ["python","manage.py","runserver","0.0.0.0:8001"] ---> Running in 4fd53066b777 Removing intermediate container 4fd53066b777 ---> 6b72719ff06c Successfully built 6b72719ff06c Successfully tagged django-app:latest + echo Code Build... Code Build... + docker run -d -p 8001:8001 django-app:latest 5c625dac7bccf872144dabbd4deff8d6102957cc18652f90950c7fce8694c1e8 + echo Code Deployed... Code Deployed... Finished: SUCCESS