##########################################
def projectParts = "${gitProject}".split('/')
def org = projectParts[0]
assert 2 == projectParts.length : "git proejct name must be of the form orgname/reponame"
However when I run this job from jenkins as my seed job, then I am getting following error:
Processing provided DSL script
Warning: (script, line 21) pullRequest is deprecated
ERROR: (script, line 30) No signature of method: javaposse.jobdsl.dsl.helpers.triggers.GitHubPullRequestBuilderCommitStatusContext.addTestResults() is applicable for argument types: (java.lang.Boolean) values: [true]
Finished: FAILURE
Heu guys,
Need some help here.
Following is my DSL script:
########################################## def projectParts = "${gitProject}".split('/') def org = projectParts[0] assert 2 == projectParts.length : "git proejct name must be of the form orgname/reponame"
folder(org) { }
job("${gitProject}") { label('Aws-slave') scm { git { remote { github("${gitProject}", protocol = 'ssh', host = 'github.inmo.com') refspec('+refs/pull/:refs/remotes/origin/pr/') } branch('${sha1}') } } triggers { pullRequest { admin('svn') cron('H/2 * * * *') triggerPhrase('OK to test') useGitHubHooks() permitAll() extensions { commitStatus { context('jenkins-build') addTestResults(true) completedStatus('SUCCESS', 'All is well') completedStatus('FAILURE', 'Something went wrong. Investigate!') completedStatus('ERROR', 'Something went really wrong. Investigate!') } } } } steps { maven { goals('clean') goals('install') mavenInstallation('Maven 3.1.1') } } }
##########################################
However when I run this job from jenkins as my seed job, then I am getting following error:
Processing provided DSL script Warning: (script, line 21) pullRequest is deprecated ERROR: (script, line 30) No signature of method: javaposse.jobdsl.dsl.helpers.triggers.GitHubPullRequestBuilderCommitStatusContext.addTestResults() is applicable for argument types: (java.lang.Boolean) values: [true] Finished: FAILURE
The line number 30 is: addTestResults(true)
Any idea, what am I missing here?