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 'gsscogs/databaker'
  19. reuseNode true
  20. alwaysPull true
  21. }
  22. }
  23. steps {
  24. sh 'jupyter-nbconvert --to html --output-dir=out --execute family-scope/family-scope.ipynb'
  25. sh 'jupyter-nbconvert --to html --output-dir=out --execute family-scope/geo-scope.ipynb'
  26. sh 'cp family-scope/*.html out/'
  27. }
  28. }
  29. stage('Dataset size report') {
  30. agent {
  31. dockerfile {
  32. args '-u root:root'
  33. reuseNode true
  34. }
  35. }
  36. steps {
  37. sh 'jupyter-nbconvert --to html --output-dir=out --execute dataset-stats/size.ipynb'
  38. sh 'cp dataset-stats/dataset-stats.html out/'
  39. }
  40. }
  41. }
  42. post {
  43. always {
  44. publishHTML([
  45. allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true,
  46. reportDir: 'out', reportFiles: 'dataset-dimensions.html,dataset-dimensions-geo.html,dataset-stats.html,size.html',
  47. reportName: 'Dataset Reports', reportTitles: 'Family Scope,Geo Scope,Size,Notebook'])
  48. archiveArtifacts 'out/*.html'
  49. }
  50. }
  51. }