ci-samples icon indicating copy to clipboard operation
ci-samples copied to clipboard

CI Gitlab katalonstudio error

Open imsergiobernal opened this issue 4 years ago • 1 comments

Hello,` I'm trying to access to /opt/katalonstudio/config folder in order to get session logs.

I tried with this gitlab-ci config but does not seems to be attached as artifact. Any tip? Thanks!

image: katalonstudio/katalon
services:
  - docker:dind

stages:
  - test

e2e_job:
  stage: test
  script:
    - katalon-execute.sh -browserType="Chrome" -retry=0 -statusDelay=15 -testSuitePath="/tmp/katalon_execute/project/"
  artifacts:
    name: "$CI_COMMIT_REF_NAME"
    paths:
      - report/
      - /opt/katalonstudio/config
    reports:
      junit:
      - 'report/*.xml'
    when: always
  rules:
    - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop"' # This rule will be evaluated

imsergiobernal avatar Dec 17 '19 08:12 imsergiobernal

I think this is because /opt/katalonstudio/config is not mounted on /build/... so when artifacts tries to get into /opt/katalonstudio/config folder is missing. What do you think? How can I get into those logs or even better, attach them to the job artifacts?

203 Uploading artifacts...
204 report/: found 1 matching files                    
205 WARNING: /opt/katalonstudio/config: no matching files 
206 Uploading artifacts to coordinator... ok            id=381547990 responseStatus=201 Created token=-
207 Uploading artifacts...
208 WARNING: report/*.xml: no matching files           
209 ERROR: No files to upload                          
211 ERROR: Job failed: exit code 1

imsergiobernal avatar Dec 17 '19 08:12 imsergiobernal