Skip to content

Commit

Permalink
Merge 79423d6 into 3c90a08
Browse files Browse the repository at this point in the history
  • Loading branch information
justaddcoffee authored Apr 10, 2020
2 parents 3c90a08 + 79423d6 commit 496e5d8
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 2 deletions.
72 changes: 72 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
pipeline {
agent any
triggers {
// Every two days at 11 pm
cron('0 23 */2 * *')
}
options{
timestamps()
}
stages {
// Very first: pause for a minute to give a chance to
// cancel and clean the workspace before use.
stage('Ready and clean') {
steps {
// Give us a minute to cancel if we want.
// sleep time: 1, unit: 'MINUTES'
cleanWs()
}
}
stage('Initialize') {
steps {
// Start preparing environment.
parallel(
"Report": {
sh 'env > env.txt'
sh 'echo $BRANCH_NAME > branch.txt'
sh 'echo "$BRANCH_NAME"'
sh 'cat env.txt'
sh 'cat branch.txt'
sh 'echo $START_DAY > dow.txt'
sh 'echo "$START_DAY"'
})
}
}

stage('Build kg_covid_19') {
steps {
dir('./config') {
git(
url: 'https://github.com/Knowledge-Graph-Hub/kg-covid-19',
branch: 'master'
)
sh '/usr/bin/python3.7 -m venv venv'
sh '. venv/bin/activate'
sh './venv/bin/pip install bmt'
sh './venv/bin/pip install -r requirements.txt'
sh './venv/bin/python setup.py install'
}
}
}
stage('Download') {
steps {
sh 'cd config;. venv/bin/activate; python3.7 run.py download'
}
}
stage('Transform') {
steps {
sh 'cd config;. venv/bin/activate; python3.7 run.py transform'
}
}
stage('Load') {
steps {
sh 'cd config;. venv/bin/activate; python3.7 run.py load'
}
}
stage('Push to s3 bucket') {
steps {
echo "???? # Need some details for this item"
}
}
}
}
2 changes: 1 addition & 1 deletion download.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
# SciBite CORD-19 annotations v1.2
#
-
url: https://github.com/SciBiteLabs/CORD19/raw/d2fb4998a504bcb06f5d0fd407f58feda2f140b1/annotated-CORD-19/1.2/CORD-19_1_2.zip
url: http://idg.berkeleybop.io/CORD-19_1_2.zip
local_name: CORD-19_1_2.zip

# SciBite CORD-19 entity co-occurrences v1.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
git+git://github.com/LucaCappelletti94/kgx.git
git+git://github.com/NCATS-Tangerine/kgx.git

0 comments on commit 496e5d8

Please sign in to comment.