Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dag_build_fails_test_skips_rollback_on_failure.yml « test_cases « pipeline_processing « ci « services « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 591e66304eb6892f453ab5ccbb86bd8a3ce57664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
config:
  build:
    stage: build
    script: exit 1

  test:
    stage: test
    script: exit 0

  deploy:
    stage: deploy
    script: exit 0
    needs: [build, test]

  rollback:
    stage: deploy
    script: exit 0
    when: on_failure
    needs: [build, test]

init:
  expect:
    pipeline: pending
    stages:
      build: pending
      test: created
      deploy: created
    jobs:
      build: pending
      test: created
      deploy: created
      rollback: created

transitions:
  - event: drop
    jobs: [build]
    expect:
      pipeline: failed
      stages:
        build: failed
        test: skipped
        deploy: skipped
      jobs:
        build: failed
        test: skipped
        deploy: skipped
        rollback: skipped