diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7b4f4f51b0c95d0e5d0592404f9112f4210f483..0a942fd18311431e43e345951dc42a839dfb7cb5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -85,38 +85,38 @@ func-test: paths: - build/func_test -prod-test: - id_tokens: - SITE_ID_TOKEN: - aud: https://gitlab.dkrz.de - tags: - - levante - variables: - SCHEDULER_PARAMETERS: "--account=$ACCOUNT --partition=shared --mem=16G" - script: - - module load clint $PROJECT_MODULE - - source /etc/profile.d/modules.sh - - module use /sw/spack-levante/spack/modules - - module load cdo/2.2.2-gcc-11.2.0 nco/5.0.6-gcc-11.2.0 - - export EVALUATION_SYSTEM_PLUGINS=$CI_PROJECT_DIR,pet-wrapper-api - - freva-plugin --list - - freva-plugin pet project=nukleus product=ceu-3 institute=clmcom-btu model=ec-earth-consortium-ec-earth3-veg-clmcom-btu-icon-2-6-5-rc-nukleus-x2yn2-v1 experiment=historical ensemble=r1i1p1f1 start_date=1970-01-01 end_date=1971-12-31 region=2,6,46,54 caption="PET production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/pet/-/jobs/$CI_JOB_ID"-vvv - - freva-plugin pet project=cmip6 product=cmip institute=awi model=awi-esm-1-recom experiment=esm-hist ensemble=r1i1p1f1 start_date=1900-01-01 end_date=1902-12-31 region=5,15,47,55 caption="PET production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/pet/-/jobs/$CI_JOB_ID" -vvv - - mkdir -p build/prod_test - - REGIKLIM_JOB_ID=$(ls -t /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/pet/ | head -n 1) - - cd /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/pet/$REGIKLIM_JOB_ID - - echo "<!DOCTYPE html><html><head>" >> index.html - - echo "<meta http-equiv=\"refresh\" content=\"0; url=https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">" >> index.html - - echo "<title>Redirecting...</title>" >> index.html - - echo "</head><body>" >> index.html - - echo "<p>If you are not redirected, <a href=\"https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">click here</a>.</p>" >> index.html - - echo "</body></html>" >> index.html - - ls -la - - cp -r * $CI_PROJECT_DIR/build/prod_test - artifacts: - when: always - paths: - - build/prod_test +# prod-test: +# id_tokens: +# SITE_ID_TOKEN: +# aud: https://gitlab.dkrz.de +# tags: +# - levante +# variables: +# SCHEDULER_PARAMETERS: "--account=$ACCOUNT --partition=shared --mem=16G" +# script: +# - module load clint $PROJECT_MODULE +# - source /etc/profile.d/modules.sh +# - module use /sw/spack-levante/spack/modules +# - module load cdo/2.2.2-gcc-11.2.0 nco/5.0.6-gcc-11.2.0 +# - export EVALUATION_SYSTEM_PLUGINS=$CI_PROJECT_DIR,pet-wrapper-api +# - freva-plugin --list +# - freva-plugin pet project=nukleus product=ceu-3 institute=clmcom-btu model=ec-earth-consortium-ec-earth3-veg-clmcom-btu-icon-2-6-5-rc-nukleus-x2yn2-v1 experiment=historical ensemble=r1i1p1f1 start_date=1970-01-01 end_date=1971-12-31 region=2,6,46,54 caption="PET production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/pet/-/jobs/$CI_JOB_ID"-vvv +# - freva-plugin pet project=cmip6 product=cmip institute=awi model=awi-esm-1-recom experiment=esm-hist ensemble=r1i1p1f1 start_date=1900-01-01 end_date=1902-12-31 region=5,15,47,55 caption="PET production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/pet/-/jobs/$CI_JOB_ID" -vvv +# - mkdir -p build/prod_test +# - REGIKLIM_JOB_ID=$(ls -t /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/pet/ | head -n 1) +# - cd /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/pet/$REGIKLIM_JOB_ID +# - echo "<!DOCTYPE html><html><head>" >> index.html +# - echo "<meta http-equiv=\"refresh\" content=\"0; url=https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">" >> index.html +# - echo "<title>Redirecting...</title>" >> index.html +# - echo "</head><body>" >> index.html +# - echo "<p>If you are not redirected, <a href=\"https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">click here</a>.</p>" >> index.html +# - echo "</body></html>" >> index.html +# - ls -la +# - cp -r * $CI_PROJECT_DIR/build/prod_test +# artifacts: +# when: always +# paths: +# - build/prod_test pages: stage: pages @@ -124,12 +124,12 @@ pages: - sphinx needs: - func-test - - prod-test + # - prod-test script: - mkdir -p public/func_test - cp -r build/func_test/* public/func_test/ - - mkdir -p public/prod_test - - cp -r build/prod_test/* public/prod_test + # - mkdir -p public/prod_test + # - cp -r build/prod_test/* public/prod_test artifacts: paths: - public