Exclude other pipeline jobs from nightly schedule

This commit is contained in:
Zedifus
2024-12-10 21:11:28 +00:00
parent 589448a244
commit 6bb23db3bd
3 changed files with 18 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ yamllint:
rules:
- if: "$CODE_QUALITY_DISABLED"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
script:
- yamllint .
@@ -22,6 +24,8 @@ jsonlint:
rules:
- if: "$CODE_QUALITY_DISABLED"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
script:
- |
@@ -37,6 +41,8 @@ black:
rules:
- if: "$CODE_QUALITY_DISABLED"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
script:
- black --check --verbose -- .
@@ -50,6 +56,8 @@ pylint:
rules:
- if: "$CODE_QUALITY_DISABLED"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
before_script:
- apk update
@@ -75,6 +83,8 @@ sonarcloud-check:
when: never
- if: "$CODE_QUALITY_DISABLED"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
@@ -94,6 +104,8 @@ sonarcloud-check:
# rules:
# - if: "$CODE_QUALITY_DISABLED"
# when: never
# - if: $CI_PIPELINE_SOURCE == "schedule"
# when: never
# - if: "$CI_COMMIT_TAG || $CI_COMMIT_BRANCH"
# allow_failure: true
# before_script:

View File

@@ -4,6 +4,8 @@ release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: $CI_COMMIT_TAG
needs:
- job: win-prod-build

View File

@@ -8,6 +8,8 @@ win-dev-build:
paths:
- .venv/
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: "$CI_COMMIT_BRANCH == 'dev'"
environment:
name: development
@@ -55,6 +57,8 @@ win-prod-build:
paths:
- .venv/
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
- if: $CI_COMMIT_TAG
environment: