DAST job fails but states as succesful

I run the AutoDevOps pipeline for rails project and DAST job reported a success https://gitlab.com/dz-test-group/rails-app/-/jobs/344453276.

Screenshot_2019-11-07_at_15.10.22

However when I looked at logs I saw that it actually fails:

$ /analyze -t $DAST_WEBSITE
usage: zap-scan-launcher.py [-h] [-t TARGET] [--auth-url AUTH_URL]
                            [--auth-username AUTH_USERNAME]
                            [--auth-password AUTH_PASSWORD]
                            [--auth-username-field AUTH_USERNAME_FIELD]
                            [--auth-password-field AUTH_PASSWORD_FIELD]
                            [--auth-submit-field AUTH_SUBMIT_FIELD]
                            [--auth-first-submit-field AUTH_FIRST_SUBMIT_FIELD]
                            [--auth-display AUTH_DISPLAY]
                            [--auth-auto AUTH_AUTO]
                            [--auth-exclude-urls AUTH_EXCLUDE_URLS]
                            [--full-scan FULL_SCAN]
                            [--validate-domain FULL_SCAN_DOMAIN_VALIDATION_REQUIRED]
                            [--availability-timeout AVAILABILITY_TIMEOUT]
                            [-c ZAP_CONFIG_FILE] [-u ZAP_CONFIG_URL]
                            [-g ZAP_GEN_FILE] [-m ZAP_MINS]
                            [-r ZAP_REPORT_HTML] [-w ZAP_REPORT_MD]
                            [-x ZAP_REPORT_XML] [-a] [-d] [-P ZAP_PORT]
                            [-D ZAP_DELAY_IN_SECONDS] [-i] [-I] [-j]
                            [-l ZAP_MIN_LEVEL] [-n ZAP_CONTEXT_FILE]
                            [-p ZAP_PROGRESS_FILE] [-s] [-T ZAP_MINS_TO_WAIT]
                            [-z ZAP_OTHER_OPTIONS]
zap-scan-launcher.py: error: argument -t: expected one argument
Uploading artifacts...
WARNING: gl-dast-report.json: no matching files    
ERROR: No files to upload                          
Job succeeded

Its confusing since I can't trust DAST job to actually run without checking the log now

Edited Nov 07, 2019 by Dmytro Zaporozhets (DZ)
Assignee Loading
Time tracking Loading