Skip to content

Instantly share code, notes, and snippets.

@jk
Created December 18, 2020 13:11
Show Gist options
  • Save jk/9bce00f46b32daa37960dd9d11752539 to your computer and use it in GitHub Desktop.
Save jk/9bce00f46b32daa37960dd9d11752539 to your computer and use it in GitHub Desktop.
Run JetBrains Qodana on GitLab CI
qodana:
stage: report
image:
name: jetbrains/qodana:latest
entrypoint: ["/usr/bin/bash", "-l", "-c"]
needs:
- composer-prod
script:
- ln -sf $CI_PROJECT_DIR/ /data/project
- /opt/idea/bin/entrypoint --save-report
- cp -r /data/results $CI_PROJECT_DIR/qodana
artifacts:
paths:
- $CI_PROJECT_DIR/qodana
@CLOVIS-AI
Copy link

CLOVIS-AI commented Jul 18, 2021

This is outdated and doesn't work anymore. The official documentation has a working example for GitLab: https://www.jetbrains.com/help/qodana/qodana-intellij-docker-readme.html#quick-start-recommended-profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment