github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/harness/yaml/testdata/_test1.yaml (about)

     1  version: "1.0"
     2  pipeline:
     3    name: foo
     4    identifier: foo
     5    projectIdentifier: playground
     6    orgIdentifier: default
     7    tags: {}
     8    stages:
     9      - stage:
    10          name: test1
    11          identifier: test1
    12          type: CI
    13          spec:
    14            cloneCodebase: false
    15            infrastructure:
    16              type: KubernetesDirect
    17              spec:
    18                connectorRef: account.test123
    19                namespace: default
    20            execution:
    21              steps:
    22                - step:
    23                    type: Run
    24                    name: test step 1
    25                    identifier: test_step_1
    26                    spec:
    27                      connectorRef: account.nofar_dockerhub
    28                      image: golang
    29                      command: |-
    30                        go build
    31                        go test
    32                      privileged: true
    33                      reports:
    34                        type: JUnit
    35                        spec:
    36                          paths:
    37                            - test/*.xml
    38                      envVariables:
    39                        foo: bar
    40                      outputVariables:
    41                        - name: foo
    42                      imagePullPolicy: IfNotPresent
    43                      shell: Bash
    44                      runAsUser: "1111"
    45                    description: this is a description
    46                    timeout: 10m
    47                    when:
    48                      stageStatus: All
    49                    failureStrategies: []
    50                - step:
    51                    type: Run
    52                    name: test 2
    53                    identifier: test_2
    54                    spec:
    55                      connectorRef: account.nofar_dockerhub
    56                      image: node:14
    57                      command: |-
    58                        npm install
    59                        npm test
    60                    when:
    61                      stageStatus: Success
    62                      condition: "true"
    63                    failureStrategies: []
    64                - step:
    65                    type: Run
    66                    name: foo
    67                    identifier: foo
    68                    spec:
    69                      connectorRef: account.nofar_dockerhub
    70                      image: golang
    71                      command: go vet
    72                    when:
    73                      stageStatus: Failure
    74                    failureStrategies:
    75                      - onFailure:
    76                          errors:
    77                            - Timeout
    78                          action:
    79                            type: Retry
    80                            spec:
    81                              retryCount: 3
    82                              retryIntervals:
    83                                - 12s
    84                                - 15s
    85                                - 16s
    86                              onRetryFailure:
    87                                action:
    88                                  type: Ignore