Skip to content

Commit

Permalink
Merge pull request #268 from Knowledge-Graph-Hub/include_yaml_manifes…
Browse files Browse the repository at this point in the history
…t_in_tar

Timestamp YAML manifest so we can access history, and also put this in tar file along with nodes/edges files
  • Loading branch information
justaddcoffee committed Jul 10, 2020
2 parents 6dfa60d + e79bcaa commit ce87a74
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
pipeline {
agent any

environment {
BUILDSTARTDATE = sh(script: "echo `date +%Y%m%d`", returnStdout: true).trim()
}

options {
timestamps()
}
Expand All @@ -24,8 +29,8 @@ pipeline {
sh 'echo "$BRANCH_NAME"'
sh 'cat env.txt'
sh 'cat branch.txt'
sh 'echo $START_DAY > dow.txt'
sh 'echo "$START_DAY"'
sh "echo $BUILDSTARTDATE > dow.txt"
sh "echo $BUILDSTARTDATE"
})
}
}
Expand Down Expand Up @@ -86,6 +91,9 @@ pipeline {
steps {
dir('./gitrepo') {
sh '. venv/bin/activate && python3.7 run.py merge'
sh 'env'
sh 'cp merged_graph_stats.yaml merged_graph_stats_$BUILDSTARTDATE.yaml'
sh 'tar -rvf data/merged/merged-kg.tar merged_graph_stats_$BUILDSTARTDATE.yaml'
sh 'pigz data/merged/merged-kg.tar'
sh 'pigz data/merged/merged-kg.nt'
}
Expand Down

0 comments on commit ce87a74

Please sign in to comment.