- pip list --format columns
- if [ -x bin/compile-xlate-msgs.sh ] ; then bin/compile-xlate-msgs.sh; fi
- |
- if [ "$CI_COMMIT_REF_NAME" = "master" -o "$CI_COMMIT_REF_NAME" = "production" ] ; then
+ if [ "$CI_COMMIT_REF_NAME" = "master" -o "$CI_COMMIT_REF_NAME" = "main" -o "$CI_COMMIT_REF_NAME" = "production" ] ; then
SYSTEM_STATUS="production"
elif [ "$CI_COMMIT_REF_NAME" = "test" -o "$CI_COMMIT_REF_NAME" = "testing" ] ; then
SYSTEM_STATUS="testing"
- which python3
- bin/create-vmware-template --version
- bin/create-vmware-template --help
- except:
- - /^dev-.*$/
- - /^dev\/.*$/
- - /^hf.*$/
- - tags
+ rules:
+ - if: $CI_COMMIT_BRANCH =~ /^dev-.*$/ || $CI_COMMIT_BRANCH =~ /^dev\/.*$/ || $CI_COMMIT_BRANCH =~ /^hf.*$/
+ when: never
+ - if: $CI_COMMIT_TAG
+ when: never
Linter:
extends:
script:
- pip install --upgrade --upgrade-strategy eager flake8 pylint
- flake8 --max-line-length=$FLAKE8_MAX_LINE_LENGTH --max-complexity=$FLAKE8_MAX_COMPLEXITY --ignore=$FLAKE8_IGNORE_ERRORS bin lib
- except:
- - /^dev-.*$/
- - /^dev\/.*$/
- - /^hf.*$/
- - tags
+ rules:
+ - if: $CI_COMMIT_BRANCH =~ /^dev-.*$/ || $CI_COMMIT_BRANCH =~ /^dev\/.*$/ || $CI_COMMIT_BRANCH =~ /^hf.*$/
+ when: never
+ - if: $CI_COMMIT_TAG
+ when: never
.build-job:
script:
VM_IS_RHEL: 'True'
VM_KS_TEMPLATE: 'el9-standard.ks'
COBBLER_DISTRO: 'RHEL-9.2-x86_64'
- if:
- - master
- - main
- only:
- - schedules
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"
+ when: on_success
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main"
+ when: on_success
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "production"
+ when: on_success
+ - when: never
Create RHEL9 test template:
extends:
VM_IS_RHEL: 'True'
VM_KS_TEMPLATE: 'el9-standard.ks'
COBBLER_DISTRO: 'RHEL-9.2-x86_64'
- if:
- - test
- except:
- - tags
- only:
- - schedules
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "test"
+ when: on_success
+ - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "testing"
+ when: on_success
+ - when: never
# vim: et list