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.
 
 
 
 
 
 

54 lines
1.5 KiB

  1. pipeline {
  2. agent any
  3. triggers {
  4. cron(env.BRANCH_NAME == 'master' ? 'H 0 * * *' : '')
  5. }
  6. options {
  7. timestamps()
  8. timeout(time: 1, unit: 'HOURS')
  9. }
  10. stages {
  11. stage('test') {
  12. when { branch 'master' }
  13. steps {
  14. dir('app/src/androidTest/java/org/mozilla/fenix/syncIntegration') {
  15. sh 'pipenv install'
  16. sh 'pipenv check'
  17. sh 'pipenv run pytest'
  18. }
  19. }
  20. }
  21. }
  22. post {
  23. always {
  24. script {
  25. if (env.BRANCH_NAME == 'master') {
  26. publishHTML(target: [
  27. allowMissing: false,
  28. alwaysLinkToLastBuild: true,
  29. keepAll: true,
  30. reportDir: 'app/src/androidTest/java/org/mozilla/fenix/syncintegration/results',
  31. reportFiles: 'index.html',
  32. reportName: 'HTML Report'])
  33. }
  34. }
  35. }
  36. failure {
  37. script {
  38. if (env.BRANCH_NAME == 'master') {
  39. slackSend(
  40. color: 'danger',
  41. message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL}HTML_20Report/)")
  42. }
  43. }
  44. }
  45. fixed {
  46. slackSend(
  47. color: 'good',
  48. message: "FIXED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL}HTML_20Report/)")
  49. }
  50. }
  51. }