You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2KB

  1. kind: pipeline
  2. name: analysis
  3. steps:
  4. - name: analysis
  5. image: nextcloudci/android:android-50
  6. environment:
  7. GIT_USERNAME:
  8. from_secret: GIT_USERNAME
  9. GIT_TOKEN:
  10. from_secret: GIT_TOKEN
  11. LOG_USERNAME:
  12. from_secret: LOG_USERNAME
  13. LOG_PASSWORD:
  14. from_secret: LOG_PASSWORD
  15. commands:
  16. - scripts/checkIfRunDrone.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST || exit 0
  17. - export BRANCH=$(scripts/analysis/getBranchName.sh $GIT_USERNAME $GIT_TOKEN $DRONE_PULL_REQUEST)
  18. - scripts/analysis/analysis-wrapper.sh $GIT_USERNAME $GIT_TOKEN $BRANCH $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER $DRONE_PULL_REQUEST
  19. - name: notify
  20. image: drillster/drone-email
  21. settings:
  22. port: 587
  23. from: nextcloud-drone@kaminsky.me
  24. recipients_only: true
  25. username:
  26. from_secret: EMAIL_USERNAME
  27. password:
  28. from_secret: EMAIL_PASSWORD
  29. recipients:
  30. from_secret: EMAIL_RECIPIENTS
  31. host:
  32. from_secret: EMAIL_HOST
  33. when:
  34. event:
  35. - push
  36. status:
  37. - failure
  38. branch:
  39. - master
  40. trigger:
  41. branch:
  42. - master
  43. event:
  44. - push
  45. - pull_request