Hello there guys!
I just joined the forum in hopes of finding a solution to my weird problem with Gitlab CI. I am using lftp program to automate a deployment process for a repo. Everything works fine even the deployment works perfectly but at the end job shows as failed which is quite annoying as well as it makes difficult to distinguish between successful and unsuccessful jobs.
Here is the gitlab.yml file I am using along with the log of a recent job.
image: node:latest
before_script:
- npm install
- apt-get update -qq && apt-get install libpng12-0
- npm run build
- apt-get update -qq && apt-get install -y -qq lftp
stages:
- deploy
deploy:
stage: deploy
script:
- lftp -c "set ssl:verify-certificate false; open -u $USERNAME,$PASSWORD $HOST; mirror -Rev ./dist/ / --ignore-time --parallel=10"
only:
- master
LOG:
e[32;1m$ lftp -c "set ssl:verify-certificate false; open -u $USERNAME,$PASSWORD $HOST; mirror -Rev ./dist/ / --ignore-time --parallel=10"e[0;m
Removing old file `assets/styles/about-us.bundle.css'
Transferring file `assets/styles/about-us.bundle.css'
Removing old file `assets/styles/appointment.bundle.css'
Transferring file `assets/styles/appointment.bundle.css'
Removing old file `assets/styles/common-problems.bundle.css'
Transferring file `assets/styles/common-problems.bundle.css'
Removing old file `assets/styles/confirmation.bundle.css'
Transferring file `assets/styles/confirmation.bundle.css'
Removing old file `assets/styles/contact-us.bundle.css'
Transferring file `assets/styles/contact-us.bundle.css'
Removing old file `assets/styles/gallery.bundle.css'
Transferring file `assets/styles/gallery.bundle.css'
Removing old file `assets/styles/index.bundle.css'
Transferring file `assets/styles/index.bundle.css'
Removing old file `assets/styles/ipad-repairs.bundle.css'
Transferring file `assets/styles/ipad-repairs.bundle.css'
Removing old file `assets/styles/iphone-repairs.bundle.css'
Transferring file `assets/styles/iphone-repairs.bundle.css'
Removing old file `assets/styles/samsung-repairs.bundle.css'
Transferring file `assets/styles/samsung-repairs.bundle.css'
Removing old file `assets/styles/sony-repairs.bundle.css'
Transferring file `assets/styles/sony-repairs.bundle.css'
Removing old file `assets/styles/terms-conditions.bundle.css'
Transferring file `assets/styles/terms-conditions.bundle.css'
section_end:1512564514:build_script
e[0Ksection_start:1512564514:after_script
e[0Ksection_end:1512564515:after_script
e[0Ke[31;1mERROR: Job failed: exit code 1
e[0;m
Note this is not the complete log as it only show the part after the lftp command. Please ask if you need a complete log. I was not able to paste the full version here because of the word limit.
Please look at the last line of the log which says “1mERROR: Job failed: exit code 1” I was unable to find a solution around this in this forum as well as all over the internet. Please help me troubleshoot this issue. Thanks in advance.