<commit_before># Build script used by gitlab.medelexis.ch
stages:
    - build
    - build_container

build:
  stage: build
  script: 
  - find features -type f -name p2.inf -exec sed -i "s@REPLACE_WITH_GIT_REV@$CI_COMMIT_SHA@g" {} \;
  - find features -type f -name p2.inf -exec sed -i "s|REPLACE_WITH_GIT_REPO_URL|$CI_PROJECT_URL|g" {} \;
  - mvn -f releng/es.parent/pom.xml clean verify -P sonar -Dsonar.login=$SONAR_LOGIN_TOKEN
  - eval $(ssh-agent -s)
  - ssh-add <(echo "$SSH_PRIVATE_KEY_ED25519_BASE64" | base64 -d)
  - rsync -aiv --delete -e ssh products/es.updatesite/target/repository/ <EMAIL>:download.elexis.info/elexis-server/$CI_COMMIT_REF_NAME/p2/elexis-server/
  - rsync -aiv --no-recursive -e ssh products/es.core.product.runtime/target/products/* <EMAIL>:download.elexis.info/elexis-server/$CI_COMMIT_REF_NAME/products/
  artifacts:
    reports:
      junit:
        - tests/**/target/surefire-reports/TEST-*.xml
build_container:
    stage: build_container
    tags:
    - docker-host
    script:
    - docker pull adoptopenjdk/openjdk11:alpine-slim
    - docker build --build-arg BRANCH=$CI_COMMIT_REF_NAME -t medevit/elexis-server:$CI_COMMIT_REF_NAME
    - docker push medevit/elexis-server:$CI_COMMIT_REF_NAME
<commit_msg>[22939] Update .gitlab-ci<commit_after>build:
  stage: build
  script: 
  - find features -type f -name p2.inf -exec sed -i "s@REPLACE_WITH_GIT_REV@$CI_COMMIT_SHA@g" {} \;
  - find features -type f -name p2.inf -exec sed -i "s|REPLACE_WITH_GIT_REPO_URL|$CI_PROJECT_URL|g" {} \;
  - mvn -f releng/es.parent/pom.xml clean verify -P sonar -Dsonar.login=$SONAR_LOGIN_TOKEN
  - eval $(ssh-agent -s)
  - ssh-add <(echo "$SSH_PRIVATE_KEY_ED25519_BASE64" | base64 -d)
  - rsync -aiv --delete -e ssh products/es.updatesite/target/repository/ <EMAIL>:download.elexis.info/elexis-server/$CI_COMMIT_REF_NAME/p2/elexis-server/
  - rsync -aiv --no-recursive -e ssh products/es.core.product.runtime/target/products/* <EMAIL>:download.elexis.info/elexis-server/$CI_COMMIT_REF_NAME/products/
  artifacts:
    reports:
      junit:
        - tests/**/target/surefire-reports/TEST-*.xml
build_container:
    stage: deploy
    tags:
    - docker-host
    script:
    - docker pull adoptopenjdk/openjdk11:alpine-slim
    - docker build --build-arg BRANCH=$CI_COMMIT_REF_NAME -t medevit/elexis-server:$CI_COMMIT_REF_NAME .
    - docker push medevit/elexis-server:$CI_COMMIT_REF_NAME

{'fraction_non_alphanumeric': 0.1319184352892218, 'fraction_numerical': 0.01373283395755306, 'mean_word_length': 3.5103189493433398, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '293332', 'n_tokens_mistral': 979, 'n_tokens_neox': 945, 'n_words': 163}