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

Ajout de condition d'exécution pour déclencher le pipeline uniquement 1 fois...

Ajout de condition d'exécution pour déclencher le pipeline uniquement 1 fois par semaine et non à chaque commit.
parent f4e0bd1f
No related branches found
No related tags found
No related merge requests found
Pipeline #168177 canceled
image: python:3-alpine image: python:3-alpine
build-dois-csv: build-dois-csv:
only:
- schedules
before_script: before_script:
- apk update - apk update
- apk add git openssh - apk add git openssh
...@@ -12,7 +14,7 @@ build-dois-csv: ...@@ -12,7 +14,7 @@ build-dois-csv:
after_script: after_script:
- 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://WRITE_ACCESS:${ACCESS_TOKEN}@gricad-gitlab.univ-grenoble-alpes.fr${CI_PROJECT_PATH}.git" - git remote set-url --push origin "https://WRITE_ACCESS:${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 - 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
- git commit -m "Nouvelle execution du pipeline" - git commit -m "Nouvelle execution du pipeline"
- git push origin HEAD:$CI_COMMIT_REF_NAME - git push origin HEAD:$CI_COMMIT_REF_NAME
......
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