- pipeline {
- agent {
- label 'master'
- }
- triggers{
- cron('H 2 * * 0')
- }
- stages {
- stage('Clean') {
- steps {
- sh 'rm -rf out'
- sh 'mkdir out'
- }
- }
- stage('Family scope report') {
- agent {
- docker {
- image 'cloudfluff/databaker-docker'
- reuseNode true
- }
- }
- steps {
- sh 'cd family-scope && jupyter-nbconvert --to python --stdout family-scope.ipynb | ipython'
- sh 'cp family-scope/dataset-dimensions.html out/'
- }
- }
- stage('Dataset size report') {
- agent {
- docker {
- image 'cloudfluff/databaker-docker'
- reuseNode true
- }
- }
- steps {
- sh 'cd dataset-stats && jupyter-nbconvert --to python --stdout size.ipynb | ipython'
- sh 'cp dataset-stats/dataset-stats.html out/'
- }
- }
- }
- post {
- always {
- publishHTML([
- allowMissing: true, alwaysLinkToLastBuild: true, keepAll: true,
- reportDir: 'out', reportFiles: 'dataset-dimensions.html,dataset-stats.html',
- reportName: 'Dataset Reports', reportTitles: 'Family Scope,Size'])
- }
- }
- }