About the role
Console Output
Download
Copy
View as plain text
Started by user saikiran bavandla
[Pipeline] Start of Pipeline
[Pipeline] node
Running on jenkins-agent
in /home/ubuntu/workspace/NodeCICD
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Code)
[Pipeline] echo
This is cloning the code
[Pipeline] git
The recommended git tool is: NONE
No credentials specified
Fetching changes from the remote Git repository
Checking out Revision cc27d1d59e19fda2b83e3ca887838e5926571b74 (refs/remotes/origin/main)
Commit message: "commit"
> git rev-parse --resolve-git-dir /home/ubuntu/workspace/NodeCICD/.git # timeout=10
> git config remote.origin.url https://github.com/sai1004/node-app-cicd.git # timeout=10
Fetching upstream changes from https://github.com/sai1004/node-app-cicd.git
> git --version # timeout=10
> git --version # 'git version 2.43.0'
> git fetch --tags --force --progress -- https://github.com/sai1004/node-app-cicd.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/main^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f cc27d1d59e19fda2b83e3ca887838e5926571b74 # timeout=10
> git branch -a -v --no-abbrev # timeout=10
> git branch -D main # timeout=10
> git checkout -b main cc27d1d59e19fda2b83e3ca887838e5926571b74 # timeout=10
> git rev-list --no-walk cc27d1d59e19fda2b83e3ca887838e5926571b74 # timeout=10
[Pipeline] echo
code cloning successful
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] echo
This is building the code
[Pipeline] sh
+ whoami
ubuntu
[Pipeline] sh
+ docker build -t node-app-cicd:latest .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=node-app-cicd%3Alatest&target=&ulimits=%5B%5D&version=1": dial unix /var/run/docker.sock: connect: permission denied
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Test)
Stage "Test" skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy)
Stage "Deploy" skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE