Skip to content

Commit

Permalink
ci: изменил порядок следования job
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlo Ivan committed Jul 8, 2024
1 parent 3add4ae commit 8e193a9
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,29 @@ coverage:
needs:
- 1testrunner

SonarQube:
stage: report
variables:
GIT_STRATEGY: clone
SONAR_SCANNER_OPTS: "-Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -Xmx6G"
allow_failure: true
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- changes:
- src/*
- features/*
- tasks/*
- tests/*
tags:
- OneScript
script:
# - $VERSION = sls -Path .\opm-metadata.xml -Pattern "<Version>(?<ver>\d\.\d\.\d)" -All | % { $_.Matches.Groups } | ? {$_.Name -eq "ver" } | % Value
# - sonar-scanner -D sonar.token=$SONAR_TOKEN -D sonar.projectVersion=$VERSION
- opm run sonar-scanner
timeout: 10m
needs:
- coverage

Allure:
stage: report
variables:
Expand All @@ -258,11 +281,10 @@ Allure:
needs:
- job: 1testrunner

SonarQube:
pages:
stage: report
variables:
GIT_STRATEGY: clone
SONAR_SCANNER_OPTS: "-Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8 -Xmx6G"
GIT_STRATEGY: none
allow_failure: true
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Expand All @@ -274,12 +296,14 @@ SonarQube:
tags:
- OneScript
script:
# - $VERSION = sls -Path .\opm-metadata.xml -Pattern "<Version>(?<ver>\d\.\d\.\d)" -All | % { $_.Matches.Groups } | ? {$_.Name -eq "ver" } | % Value
# - sonar-scanner -D sonar.token=$SONAR_TOKEN -D sonar.projectVersion=$VERSION
- opm run sonar-scanner
- mkdir public;
move out/allure-report public
timeout: 10m
artifacts:
paths:
- public
needs:
- coverage
- job: Allure

package:
stage: release
Expand Down Expand Up @@ -329,27 +353,3 @@ release:
timeout: 10m
needs:
- job: package

pages:
stage: release
variables:
GIT_STRATEGY: none
allow_failure: true
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- changes:
- src/*
- features/*
- tasks/*
- tests/*
tags:
- OneScript
script:
- mkdir public;
move out/allure-report public
timeout: 10m
artifacts:
paths:
- public
needs:
- job: Allure

0 comments on commit 8e193a9

Please sign in to comment.