Skip to content

Commit

Permalink
Merge 9927015 into 34584a0
Browse files Browse the repository at this point in the history
  • Loading branch information
justaddcoffee committed Jul 8, 2020
2 parents 34584a0 + 9927015 commit 06f0d51
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 06f0d51

Please sign in to comment.