gitlab-qa 7.24.6 → 7.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ab5663ab224b79f77ee02d363fa0e38d5a14f53e895b5135e87a79e91ebb89a
4
- data.tar.gz: 0b42e0776e042612565fe7e55af86db3dd3559dcdce549e4d937948e55173f81
3
+ metadata.gz: 1d63cf60f15e33988af850fbe566a6f46d695f572083bfff13870598058aebaa
4
+ data.tar.gz: ccb96a5c450f8bb16d7c032953c3894f6ec9dcaec61a77d60484351e1db588d0
5
5
  SHA512:
6
- metadata.gz: a9046b2ee0a0a41d289a3551c4fe5179198b86854bcda525b1bc25915f5cc43f1b2d43f7197f077b55a43dd92bd3e40cd38c5d672bff4aa8b3c166933f7bd941
7
- data.tar.gz: c3b2491338c9a433cf3cf1ae83864484e1f769cc3626497e2ef2e3b37717b1a58b481aec74fe37024ed7a18e7cd80364f749f6d9cab481a761c81b16aaab2cd8
6
+ metadata.gz: 451356306a538d083f628ccfaefc60c009374204ecbcf05865b88aa927b68a0bd52937229707b6c81744a4a8d41c65951edb585c956392b616f3fb373d360fcf
7
+ data.tar.gz: dd1eb4ba25977779838692dc7085d9a4b25f166217997775f016c07ceaee75259e7b7f3f8d86ef2d2c38cfe9195a7edd1b1d9c6150bd9d061b522b4aa66d0c57
@@ -2,19 +2,23 @@
2
2
  # Conditions #
3
3
  ##############
4
4
  .if-default-refs-or-ce: &if-default-refs-or-ce
5
- if: '$RELEASE == null || $RELEASE =~ /gitlab-ce/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
5
+ if: '$RELEASE == null || $RELEASE == "" || $RELEASE =~ /gitlab-ce/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
6
6
 
7
7
  .if-default-refs-or-ee: &if-default-refs-or-ee
8
- if: '$RELEASE == null || $RELEASE =~ /gitlab-ee/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
8
+ if: '$RELEASE == null || $RELEASE == "" || $RELEASE =~ /gitlab-ee/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
9
9
 
10
+ .if-default-refs-or-ce-or-ee: &if-default-refs-or-ce-or-ee
11
+ if: '$RELEASE == null || $RELEASE == "" || $RELEASE =~ /gitlab-ce|gitlab-ee/ || $CI_MERGE_REQUEST_ID || $CI_COMMIT_REF_NAME == "master"'
12
+
13
+ # In trigger jobs, such as `trigger-generated-jobs`, if a variable does not have a value set, the job will receive it literally as is i.e., "$RELEASE" in this case.
10
14
  .if-not-gitlab-qa-release: &if-not-gitlab-qa-release
11
- if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab-qa" && $RELEASE == null'
15
+ if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab-qa" && ($RELEASE == null || $RELEASE == "" || $RELEASE == "$RELEASE")'
12
16
 
13
17
  .if-staging-and-not-release: &if-staging-and-not-release
14
- if: '$RELEASE == null && $CI_JOB_NAME =~ /staging/'
18
+ if: '($RELEASE == null || $RELEASE == "") && $CI_JOB_NAME =~ /staging/'
15
19
 
16
20
  .if-quarantine-or-custom-and-not-release: &if-quarantine-or-custom-and-not-release
17
- if: '$RELEASE == null && $CI_JOB_NAME =~ /quarantine|custom/'
21
+ if: '($RELEASE == null || $RELEASE == "") && $CI_JOB_NAME =~ /quarantine|custom/'
18
22
 
19
23
  .if-quarantine-or-custom-and-ee-release: &if-quarantine-or-custom-and-ee-release
20
24
  if: '$RELEASE =~ /gitlab-ee/ && $CI_JOB_NAME =~ /quarantine|custom/'
@@ -32,7 +36,7 @@
32
36
  if: '$CI_COMMIT_TAG || $RELEASE =~ /gitlab-ce/'
33
37
 
34
38
  .if-tag-or-release: &if-tag-or-release
35
- if: '$CI_COMMIT_TAG || $RELEASE'
39
+ if: '$CI_COMMIT_TAG || ($RELEASE != null && $RELEASE != "")'
36
40
 
37
41
  .if-set-feature-flag: &if-set-feature-flag
38
42
  if: '$GITLAB_QA_OPTIONS =~ /--set-feature-flags/'
@@ -77,6 +81,15 @@
77
81
  when: manual
78
82
  - <<: *if-default-refs-or-ee
79
83
 
84
+ .rules:never-on-version-change-or-tag:
85
+ rules:
86
+ - <<: *if-not-gitlab-qa-release
87
+ changes: ["lib/**/version.rb"]
88
+ when: never
89
+ - if: '$CI_COMMIT_TAG'
90
+ when: never
91
+ - <<: *if-default-refs-or-ce-or-ee
92
+
80
93
  .rules:only-qa:
81
94
  rules:
82
95
  - <<: *if-not-gitlab-qa-release