Skip to content

Commit

Permalink
fix: run deploy jobs in scheduled pipelines
Browse files Browse the repository at this point in the history
The default behavior was not running env deploy jobs in scheduled
pipelines, which was resulting in UI tests being skipped. This change
fixes that, and adds milestone metadata to releases published to GitLab.

Jira-Id: VPNAPPL-2508
  • Loading branch information
John Biggs authored and protonjohn committed Nov 19, 2024
1 parent 77c10f2 commit e0e9be7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Integration/Templates/gitlab-publish-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ publish:gitlab:release:
release:
name: "{{ train }} {{ version }} ($TIMESTAMP)"
tag_name: $CI_COMMIT_TAG
{% for commit in target|commits -%}
{% if commit|attrs:"Sprint-Started" %}
milestones:
- "{{ commit|attrs:"Sprint-Started" }}"
{% break %}
{% endif %}
{% endfor %}
{% if release.body %}
description: |
{{ release.body|indent:6 }}
Expand Down
6 changes: 4 additions & 2 deletions Integration/Templates/gitlab-test-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ atlas:deploy:pipenv:
DESTINATION: Default

rules:
{% if config.build.ci.eventType == "merge_request_event" %}
{% if config.build.ci.eventType == "merge_request_event" or config.build.ci.eventType == "schedule" %}
- when: on_success
{% else %}
- when: manual
Expand Down Expand Up @@ -143,7 +143,9 @@ test:{{ config.name }}:ui:all:
TEST_SUITE: UI-All
extends:
- .ui_test_template
{% if config.build.ci.eventType != "schedule" %}
{% if config.build.ci.eventType == "schedule" %}
when: on_success
{% else %}
when: manual
{% endif %}

Expand Down

0 comments on commit e0e9be7

Please sign in to comment.