mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-12-05 01:10:15 +00:00
Exclude other pipeline jobs from nightly schedule
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user