Skip to content
Snippets Groups Projects
Commit bfce71a4 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Add new file

parent e55d47f6
No related branches found
No related tags found
No related merge requests found
Pipeline #50915 failed
Pipeline: github-gitlab-runner

#50916

    variables:
    GITHUB_REPOSITORY: http://github.com/eic/juggler
    GITHUB_TOKEN:
    GITHUB_REF: refs/heads/main
    stages:
    - pending
    - prepare
    - running
    - report
    .status:
    script:
    - |
    if [ -n "${GITHUB_SHA}" ] ; then
    curl \
    -X POST \
    -H "Accept: application/vnd.github+json" \
    -H "Authorization: token ${GITHUB_REPO_STATUS_TOKEN}" \
    "https://api.github.com/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA}" \
    -d '{"state":"'"${STATE}"'",
    "target_url":"'"${CI_PIPELINE_URL}"'",
    "description":"'"${DESCRIPTION} $(TZ=America/New_York date)"'",
    "context":"eicweb/detector_benchmarks ('"$DETECTOR_CONFIG"')"
    }' ;
    fi
    pending:
    stage: pending
    extends: .status
    variables:
    STATE: "pending"
    DESCRIPTION: "Started..."
    when: always
    prepare:
    stage: prepare
    script:
    - git clone ${GITHUB_REPOSITORY} project
    - git -C project checkout ${GITHUB_REF}
    - rm -r project/.git
    artifacts:
    paths:
    - project
    running:
    stage: running
    trigger:
    include:
    - artifact: project/.gitlab-ci.yml
    job: prepare
    strategy: depend
    needs:
    - artifacts: True
    job: prepare
    report:success:
    stage: report
    extends: .status
    variables:
    STATE: "success"
    DESCRIPTION: "Succeeded!"
    when: on_success
    report:failure:
    stage: report
    extends: .status
    variables:
    STATE: "failure"
    DESCRIPTION: "Failed!"
    when: on_failure
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment