feat: finalize projectwork CI jobs, docs and test integration
This commit is contained in:
@@ -11,6 +11,6 @@
|
||||
parameters:
|
||||
- string:
|
||||
name: JJB_PATH
|
||||
default: /workspace/hw8/config/jobs
|
||||
default: /workspace/projectwork/config/jobs
|
||||
description: "Путь до JJB-конфигов"
|
||||
dsl: !include-raw-verbatim: ../scripts/jobs-uploader.groovy
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- job:
|
||||
name: qa-api-contract-tests
|
||||
description: "Контрактные API тесты (WireMock + JsonSchemaValidation)."
|
||||
project-type: pipeline
|
||||
concurrent: true
|
||||
sandbox: true
|
||||
properties:
|
||||
- build-discarder:
|
||||
num-to-keep: 50
|
||||
dsl: !include-raw-verbatim: ../scripts/qa-api-contract-tests.groovy
|
||||
@@ -0,0 +1,24 @@
|
||||
---
|
||||
- job:
|
||||
name: qa-api-rest-tests
|
||||
description: "API REST тесты (RestAssured + JsonSchema + quality gates)."
|
||||
project-type: pipeline
|
||||
concurrent: true
|
||||
sandbox: true
|
||||
properties:
|
||||
- build-discarder:
|
||||
num-to-keep: 50
|
||||
parameters:
|
||||
- string:
|
||||
name: API_REST_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/hw3.git
|
||||
- string:
|
||||
name: API_REST_REPO_REF
|
||||
default: main
|
||||
- string:
|
||||
name: API_REST_MAVEN_GOAL
|
||||
default: verify
|
||||
- string:
|
||||
name: API_REST_JAVA_RELEASE
|
||||
default: "21"
|
||||
dsl: !include-raw-verbatim: ../scripts/qa-hw3-api-tests.groovy
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- job:
|
||||
name: qa-maven-extra-tests
|
||||
description: "Дополнительные Maven тесты (универсальная job)."
|
||||
project-type: pipeline
|
||||
concurrent: true
|
||||
sandbox: true
|
||||
properties:
|
||||
- build-discarder:
|
||||
num-to-keep: 50
|
||||
parameters:
|
||||
- string:
|
||||
name: EXTRA_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/hw3.git
|
||||
- string:
|
||||
name: EXTRA_REPO_REF
|
||||
default: homework_5
|
||||
- string:
|
||||
name: EXTRA_MAVEN_GOAL
|
||||
default: test
|
||||
dsl: !include-raw-verbatim: ../scripts/qa-hw5-tests.groovy
|
||||
@@ -0,0 +1,35 @@
|
||||
---
|
||||
- job:
|
||||
name: qa-playwright-tests
|
||||
description: "Playwright UI тесты."
|
||||
project-type: pipeline
|
||||
concurrent: true
|
||||
sandbox: true
|
||||
properties:
|
||||
- build-discarder:
|
||||
num-to-keep: 50
|
||||
parameters:
|
||||
- string:
|
||||
name: PLAYWRIGHT_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/homework_6.git
|
||||
- string:
|
||||
name: PLAYWRIGHT_REPO_REF
|
||||
default: master
|
||||
- choice:
|
||||
name: PLAYWRIGHT_BROWSER
|
||||
choices:
|
||||
- chromium
|
||||
- firefox
|
||||
- webkit
|
||||
- choice:
|
||||
name: PLAYWRIGHT_HEADLESS
|
||||
choices:
|
||||
- "true"
|
||||
- "false"
|
||||
- string:
|
||||
name: PLAYWRIGHT_BASE_URL
|
||||
default: https://otus.ru
|
||||
- string:
|
||||
name: PLAYWRIGHT_DOCKER_IMAGE
|
||||
default: mcr.microsoft.com/playwright/java:v1.58.0-jammy
|
||||
dsl: !include-raw-verbatim: ../scripts/qa-hw6-playwright-tests.groovy
|
||||
@@ -5,10 +5,22 @@
|
||||
project-type: pipeline
|
||||
concurrent: true
|
||||
sandbox: true
|
||||
triggers:
|
||||
- timed: "15 1 * * *"
|
||||
properties:
|
||||
- build-discarder:
|
||||
num-to-keep: 50
|
||||
parameters:
|
||||
- string:
|
||||
name: BDD_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/homework_1.git
|
||||
- string:
|
||||
name: BDD_REFS
|
||||
default: main,homework_2
|
||||
- string:
|
||||
name: BDD_REPO_REF
|
||||
default: homework_2
|
||||
description: "Legacy fallback if BDD_REFS is empty"
|
||||
- string:
|
||||
name: QA_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/homework_4.git
|
||||
@@ -41,15 +53,15 @@
|
||||
default: https://otus.ru
|
||||
- string:
|
||||
name: EXECUTION_MODE
|
||||
default: local
|
||||
default: selenoid
|
||||
- string:
|
||||
name: SELENOID_URL
|
||||
default: http://host.docker.internal:4444/wd/hub
|
||||
- choice:
|
||||
name: HEADLESS
|
||||
choices:
|
||||
- "true"
|
||||
- "false"
|
||||
- "true"
|
||||
- string:
|
||||
name: APP_URL
|
||||
default: http://wiremock:8080/wishlist.apk
|
||||
@@ -83,4 +95,36 @@
|
||||
- string:
|
||||
name: RESERVATION_OWNER
|
||||
default: user4us
|
||||
- string:
|
||||
name: API_REST_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/hw3.git
|
||||
- string:
|
||||
name: API_REST_REPO_REF
|
||||
default: main
|
||||
- string:
|
||||
name: EXTRA_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/hw3.git
|
||||
- string:
|
||||
name: EXTRA_REPO_REF
|
||||
default: homework_5
|
||||
- string:
|
||||
name: PLAYWRIGHT_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/homework_6.git
|
||||
- string:
|
||||
name: PLAYWRIGHT_REPO_REF
|
||||
default: master
|
||||
- choice:
|
||||
name: PLAYWRIGHT_BROWSER
|
||||
choices:
|
||||
- chromium
|
||||
- firefox
|
||||
- webkit
|
||||
- choice:
|
||||
name: PLAYWRIGHT_HEADLESS
|
||||
choices:
|
||||
- "true"
|
||||
- "false"
|
||||
- string:
|
||||
name: PLAYWRIGHT_DOCKER_IMAGE
|
||||
default: mcr.microsoft.com/playwright/java:v1.58.0-jammy
|
||||
dsl: !include-raw-verbatim: ../scripts/qa-runner.groovy
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
description: "Базовый URL тестируемого сайта"
|
||||
- string:
|
||||
name: EXECUTION_MODE
|
||||
default: local
|
||||
default: selenoid
|
||||
description: "Режим запуска (local|selenoid)"
|
||||
- string:
|
||||
name: SELENOID_URL
|
||||
@@ -42,7 +42,7 @@
|
||||
- choice:
|
||||
name: HEADLESS
|
||||
choices:
|
||||
- "true"
|
||||
- "false"
|
||||
- "true"
|
||||
description: "Headless режим"
|
||||
dsl: !include-raw-verbatim: ../scripts/qa-selenium-tests.groovy
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
---
|
||||
- job:
|
||||
name: qa-web-bdd-tests
|
||||
description: "WEB BDD/Cucumber тесты (homework_1, branch homework_2)."
|
||||
project-type: pipeline
|
||||
concurrent: true
|
||||
sandbox: true
|
||||
properties:
|
||||
- build-discarder:
|
||||
num-to-keep: 50
|
||||
parameters:
|
||||
- string:
|
||||
name: BDD_REPO_URL
|
||||
default: https://git.kovbasa.ru/otus-autotests/homework_1.git
|
||||
description: "Git URL репозитория с BDD/Cucumber web тестами"
|
||||
- string:
|
||||
name: BDD_REPO_REF
|
||||
default: homework_2
|
||||
description: "Git branch/tag/commit для checkout"
|
||||
- string:
|
||||
name: ALLURE_ADAPTER_VERSION
|
||||
default: 2.29.1
|
||||
description: "Версия allure-junit5 адаптера"
|
||||
- choice:
|
||||
name: BROWSER
|
||||
choices:
|
||||
- chrome
|
||||
- firefox
|
||||
- string:
|
||||
name: BASE_URL
|
||||
default: https://otus.ru
|
||||
- string:
|
||||
name: SELENOID_URL
|
||||
default: http://host.docker.internal:4444/wd/hub
|
||||
- choice:
|
||||
name: HEADLESS
|
||||
choices:
|
||||
- "false"
|
||||
- "true"
|
||||
dsl: !include-raw-verbatim: ../scripts/qa-web-bdd-tests.groovy
|
||||
Reference in New Issue
Block a user