Skip to content
Snippets Groups Projects
Commit 2e9ff409 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

always fetch

parent b2ebcbbe
No related branches found
No related tags found
1 merge request!38Draft: Just a test, do not merge
Pipeline #133199 passed
......@@ -9,6 +9,7 @@ fetch_fragments:
- apk add --update --no-cache curl jq
rules:
- if: $CI_COMMIT_BRANCH == "docs"
- when: always
script:
- TARGET_PIPELINE_ID=`curl -s "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines?ref=${TARGET_BRANCH}&private_token=${PRIVATE_TOKEN}" | jq ".[0].id"`
- TARGET_JOB_ID=`curl ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${TARGET_PIPELINE_ID}/jobs | jq --arg JOB_NAME "$JOB_NAME" '.[] | select(.name==$JOB_NAME)' | jq .id`
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment