Loading .gitlab-ci.yml +15 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,21 @@ build-cromite-x64: script: - $CI_PROJECT_DIR/build.sh -c -s -a x64 archive-filter: stage: build image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:slim-latest rules: - if: $CI_PIPELINE_SOURCE != "schedule" needs: - job: build-cromite-x64 script: - "true" artifacts: name: "$CI_JOB_NAME" paths: - bin/* expire_in: 30 days .build-filters: image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:slim-latest stage: filters Loading generate_filters.sh +3 −3 Original line number Diff line number Diff line Loading @@ -23,13 +23,13 @@ if [ -z "$selected_tag" ]; then exit 1 fi echo "Looking for build-cromite-x64 job in pipeline $pipeline_id..." echo "Looking for archive-filter job in pipeline $pipeline_id..." job_id=$(curl -s "${GITLAB_API}/projects/${PROJECT_PATH}/pipelines/${pipeline_id}/jobs" | jq -r '.[] | select(.name=="build-cromite-x64") | .id') jq -r '.[] | select(.name=="archive-filter") | .id') if [ -z "$job_id" ]; then echo "No job named build-cromite-x64 found in pipeline $pipeline_id" echo "No job named archive-filter found in pipeline $pipeline_id" exit 1 fi Loading Loading
.gitlab-ci.yml +15 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,21 @@ build-cromite-x64: script: - $CI_PROJECT_DIR/build.sh -c -s -a x64 archive-filter: stage: build image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:slim-latest rules: - if: $CI_PIPELINE_SOURCE != "schedule" needs: - job: build-cromite-x64 script: - "true" artifacts: name: "$CI_JOB_NAME" paths: - bin/* expire_in: 30 days .build-filters: image: registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:slim-latest stage: filters Loading
generate_filters.sh +3 −3 Original line number Diff line number Diff line Loading @@ -23,13 +23,13 @@ if [ -z "$selected_tag" ]; then exit 1 fi echo "Looking for build-cromite-x64 job in pipeline $pipeline_id..." echo "Looking for archive-filter job in pipeline $pipeline_id..." job_id=$(curl -s "${GITLAB_API}/projects/${PROJECT_PATH}/pipelines/${pipeline_id}/jobs" | jq -r '.[] | select(.name=="build-cromite-x64") | .id') jq -r '.[] | select(.name=="archive-filter") | .id') if [ -z "$job_id" ]; then echo "No job named build-cromite-x64 found in pipeline $pipeline_id" echo "No job named archive-filter found in pipeline $pipeline_id" exit 1 fi Loading