Skip to content
Snippets Groups Projects
Commit 364df2ae authored by Elias Chetouane's avatar Elias Chetouane
Browse files

Version fonctionnelle avec affichage des étapes. Test du clone et création de...

Version fonctionnelle avec affichage des étapes. Test du clone et création de dossier (à supprimer par la suite ?).
parent 2eb5151f
No related branches found
No related tags found
No related merge requests found
Pipeline #173472 passed
...@@ -11,45 +11,33 @@ actualisation_dois: ...@@ -11,45 +11,33 @@ actualisation_dois:
- apk add git openssh - apk add git openssh
script: script:
- date > 1-enrich-with-datacite/nb-dois.txt - date > 1-enrich-with-datacite/nb-dois.txt
# - pip install pandas - pip install pandas
# - pip install requests - pip install requests
# - pip install matplotlib - pip install matplotlib
# - python run-all-codes.py - python run-all-codes.py
after_script: after_script:
- pwd
- ls -a
- git config user.name "${GITLAB_USER_NAME}" - git config user.name "${GITLAB_USER_NAME}"
- git config user.email "${GITLAB_USER_EMAIL}" - git config user.email "${GITLAB_USER_EMAIL}"
- git remote set-url --push origin "https://PUSH_TOKEN:${ACCESS_TOKEN}@gricad-gitlab.univ-grenoble-alpes.fr/${CI_PROJECT_PATH}.git" - git remote set-url --push origin "https://PUSH_TOKEN:${ACCESS_TOKEN}@gricad-gitlab.univ-grenoble-alpes.fr/${CI_PROJECT_PATH}.git"
- git add -f dois-uga.csv 2-produce-graph/hist-evol-datasets-per-repo.png 2-produce-graph/hist-quantity-year-type.png 2-produce-graph/pie--datacite-client.png 2-produce-graph/pie--datacite-type.png 1-enrich-with-datacite/all_datacite_clients_for_uga.csv 1-enrich-with-datacite/nb-dois.txt - git add -f dois-uga.csv 2-produce-graph/hist-evol-datasets-per-repo.png 2-produce-graph/hist-quantity-year-type.png 2-produce-graph/pie--datacite-client.png 2-produce-graph/pie--datacite-type.png 1-enrich-with-datacite/all_datacite_clients_for_uga.csv 1-enrich-with-datacite/nb-dois.txt
- git commit -m "Execution du pipeline. Actualisation des dois et des graphes." - git commit -m "Execution du pipeline. Actualisation des dois et des graphes."
- git remote -v
- echo ${CI_COMMIT_REF_NAME}
- git push origin HEAD:${CI_COMMIT_REF_NAME} - git push origin HEAD:${CI_COMMIT_REF_NAME}
- pwd
- cd .. - cd ..
- ls
- mkdir /build2 - mkdir /build2
- cd /build2 - cd /build2
- ls -al
- pwd
- git clone ${LINK_TO_CLONE} - git clone ${LINK_TO_CLONE}
- cd - - cd -
- ls -a
- pwd
- cp open-research-data-monitor-back/1-enrich-with-datacite/nb-dois.txt /build2/${PATH_TO_PUSH} - cp open-research-data-monitor-back/1-enrich-with-datacite/nb-dois.txt /build2/${PATH_TO_PUSH}
- cd /build2/${PATH_TO_PUSH} - cd /build2/${PATH_TO_PUSH}
- pwd
- ls -a
- git config user.name "${GITLAB_USER_NAME}" - git config user.name "${GITLAB_USER_NAME}"
- git config user.email "${GITLAB_USER_EMAIL}" - git config user.email "${GITLAB_USER_EMAIL}"
- git remote set-url --push origin "https://PUSH_TOKEN2:${ACCESS_TOKEN2}@gricad-gitlab.univ-grenoble-alpes.fr/${PROJECT_PATH2}.git" - git remote set-url --push origin "https://PUSH_TOKEN2:${ACCESS_TOKEN2}@gricad-gitlab.univ-grenoble-alpes.fr/${PROJECT_PATH2}.git"
- echo ${ACCESS_TOKEN2}
- echo ${ACCESS_TOKEN}
- git add -f nb-dois.txt - git add -f nb-dois.txt
- git commit -m "Execution du pipeline. Actualisation du nombre de dois." - git commit -m "Execution du pipeline. Actualisation du nombre de dois."
- git remote -v - git push origin HEAD:main
- git status
- git push origin HEAD
artifacts: artifacts:
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment