Merge branch 'master' of https://git.floop.org.uk/git/ONS/pmd-jenkins-library into add_tests
commit 11cfcb981a6497ecc74ba7e3903ca6bf2740bef4
2 parents cf98203 + 3dc0b22
@Alex Tucker Alex Tucker authored on 17 Dec 2018
Showing 1 changed file
View
3
■■
vars/uploadCodelist.groovy
String baseURI = config['base_uri']
 
def draft = jobDraft.find()
 
string codelistGraph = "${baseURI}/graph/${util.slugise(name)}"
drafter.deleteGraph(PMD, credentials, draft.id, codelistGraph)
 
runPipeline("${PIPELINE}/ons-table2qb.core/codelist/import",
draft.id, credentials, [[name: 'codelist-csv',
file: [name: csv, type: 'text/csv']],
[name: 'codelist-name', value: name]])