We are trying to run a job in jenkins server. Before deploying I am trying to create a tar file of all files and folders. Whenever I try to build job tar file is created successfully but I get "Build step 'Execute shell' marked build as failure" error and build fails.
below are the commands I have added in "Execute shell" section of job
echo "START"
echo "-----GIT LOG-------"
git log --pretty=format:"%H - %an, %ar, %ad : %s " -5
git log --stat -1
echo "------ARCHIVE------"
tar -zcvf bblc.tar.gz *
below is the result I am getting after building job
**Build step 'Execute shell' marked build as failure
Archiving artifacts
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE**
I am unable to find where I am going wrong?