kind: pipeline
name: default

steps:
- name: test
  image: gradle:jdk11
  commands:
  - gradle build --stacktrace
#- name: upload_reports
#  image: gradle:jdk11
#  commands:
#    - gradle publishReports --stacktrace
#  when:
#    branch:
#    - master
#    event:
#    - push
#    status:
#      - success
#      - failure
kind: pipeline
name: default

steps:
- name: test
  image: gradle:jdk11
  commands:
  - gradle build --stacktrace
- name: upload_reports
  image: gradle:jdk11
  commands:
    - gradle publishReports --stacktrace
  environment:
    BANDBOX_FTP_USERNAME:
      from_secret: BANDBOX_FTP_USERNAME
    BANDBOX_FTP_PASSWORD:
      from_secret: BANDBOX_FTP_PASSWORD
  when:
    branch:
    - master
    event:
    - push
    status:
      - success
      - failure
Build reports sftp upload (attempt 5)
Build reports sftp upload (attempt 5)
