Newer
Older
DataReport / Jenkinsfile
  1. pipeline {
  2. agent {
  3. label 'master'
  4. }
  5. triggers{
  6. cron('H 2 * * 0')
  7. }
  8. stages {
  9. stage('Clean') {
  10. steps {
  11. sh 'rm -rf out'
  12. sh 'mkdir out'
  13. }
  14. }
  15. stage('Family scope report') {
  16. agent {
  17. docker {
  18. image 'cloudfluff/databaker-docker'
  19. reuseNode true
  20. }
  21. }
  22. steps {
  23. sh 'cd family-scope && jupyter-nbconvert --to python --stdout family-scope.ipynb | ipython'
  24. sh 'cp family-scope/dataset-dimensions.html out/'
  25. }
  26. }
  27. stage('Dataset size report') {
  28. agent {
  29. docker {
  30. image 'cloudfluff/databaker-docker'
  31. reuseNode true
  32. }
  33. }
  34. steps {
  35. sh 'cd dataset-stats && jupyter-nbconvert --to python --stdout size.ipynb | ipython'
  36. sh 'cp dataset-stats/dataset-stats.html out/'
  37. }
  38. }
  39. }
  40. post {
  41. always {
  42. publishHTML([
  43. allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true,
  44. reportDir: 'out', reportFiles: 'dataset-dimensions.html,dataset-stats.html',
  45. reportName: 'Dataset Reports', reportTitles: 'Family Scope,Size'])
  46. }
  47. }
  48. }