stages: - deploy - package deploy-jar: stage: deploy tags: - hzkepai rules: - if: $CI_COMMIT_TAG script: - mvn clean deploy -Dmaven.test.skip -DaltDeploymentRepository=master::default::file:/usr/local/nginx/html/kepai-repo - cd /usr/local/nginx/html/kepai-repo - git checkout master - git pull - git add . - git commit -m "deploy $CI_PROJECT_NAME $CI_COMMIT_TAG" - git push origin master qodana: stage: deploy tags: - hzkepai image: name: jetbrains/qodana- entrypoint: [""] variables: QODANA_TOKEN: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiJBbEQ2MSIsInByb2plY3QiOiJ6cVFxMCIsInRva2VuIjoiQVJta0UifQ.599V0MjlL6rtvGqc7ObLKfLiQRN9O7UnC_VEgEZB--Y QODANA_REMOTE_URL: git@$CI_SERVER_HOST:$CI_PROJECT_PATH.git QODANA_BRANCH: $CI_COMMIT_BRANCH QODANA_REVISION: $CI_COMMIT_SHA QODANA_JOB_URL: $CI_JOB_URL script: - qodana artifacts: paths: - qodana