Newer
Older
pmd-jenkins-library / vars / uploadCodelist.groovy
import uk.org.floop.jenkins_pmd.PMD

def call(String csv, String name) {
    PMD pmd = pmdConfig('pmd')
    def draft = jobDraft.find()
    pmd.drafter.deleteGraph(draft.id as String, "${pmd.config.base_uri}/graph/${util.slugise(name)}")
    pmd.pipelines.codelist(draft.id as String, csv, name)
}