.gitlab-ci.yml
changeset 379 07fe5bb08599
parent 378 78f52faff595
child 381 783188a98bcb
equal deleted inserted replaced
378:78f52faff595 379:07fe5bb08599
    32     allow_failure: true
    32     allow_failure: true
    33     services:
    33     services:
    34         - docker:stable-dind
    34         - docker:stable-dind
    35     script:
    35     script:
    36         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    36         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
       
    37         - echo "$PWD"
       
    38         - echo "$SP_VERSION"
    37         - docker run
    39         - docker run
    38             --env SOURCE_CODE="$PWD"
    40             --env SOURCE_CODE="$PWD"
    39             --volume "$PWD":/code
    41             --volume "$PWD":/code
    40             --volume /var/run/docker.sock:/var/run/docker.sock
    42             --volume /var/run/docker.sock:/var/run/docker.sock
    41             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
    43             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
       
    44         - ls
    42     artifacts:
    45     artifacts:
    43         reports:
    46         reports:
    44             codequality: gl-code-quality-report.json
    47             codequality: gl-code-quality-report.json