remove unused github-pr job that appears to break create-jobs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908599 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2023-03-20 20:45:02 +00:00
parent aec585b5a6
commit de517c32fc
1 changed files with 6 additions and 53 deletions

View File

@ -114,10 +114,7 @@ def poijobs = [
[ name: 'POI-DSL-Windows-1.18', jdk: '1.18', trigger: triggerSundays, windows: true, slaves: 'Windows', skipcigame: true, [ name: 'POI-DSL-Windows-1.18', jdk: '1.18', trigger: triggerSundays, windows: true, slaves: 'Windows', skipcigame: true,
skipSpotbugs: true skipSpotbugs: true
], ],
[ name: 'POI-DSL-Github-PullRequests', trigger: '', githubpr: true, skipcigame: true, [ name: 'POI-DSL-Github-PullRequests', trigger: '', skipcigame: true, disabled: true
// ensure the file which is needed from the separate documentation module does exist
// as we are checking out from git, we do not have the reference checked out here
addShell: 'mkdir -p src/documentation\ntouch src/documentation/RELEASE-NOTES.txt'
], ],
] ]
@ -322,50 +319,15 @@ poijobs.each { poijob ->
} }
jdk(jdkMapping.get(jdkKey).jenkinsJdk) jdk(jdkMapping.get(jdkKey).jenkinsJdk)
scm { scm {
if (poijob.githubpr) { svn(svnBase) { svnNode ->
git { svnNode / browser(class: 'hudson.scm.browsers.ViewSVN') /
remote { url << 'https://svn.apache.org/viewcvs.cgi/?root=Apache-SVN'
github('apache/poi')
refspec('+refs/pull/*:refs/remotes/origin/pr/*')
}
branch('${sha1}')
}
} else {
svn(svnBase) { svnNode ->
svnNode / browser(class: 'hudson.scm.browsers.ViewSVN') /
url << 'https://svn.apache.org/viewcvs.cgi/?root=Apache-SVN'
}
} }
} }
checkoutRetryCount(3) checkoutRetryCount(3)
if (poijob.githubpr) { triggers {
throttleConcurrentBuilds { scm(trigger)
maxPerNode(1)
maxTotal(1)
}
parameters {
/* plugin not available:
gitParam('sha1') {
description('Pull request')
type('BRANCH')
}*/
stringParam('sha1', 'origin/pr/9/head', 'Provide a branch-spec, e.g. origin/pr/9/head')
}
triggers {
pullRequestBuildTrigger()
githubPullRequest {
admins(['centic9', 'poi-benchmark', 'tballison', 'gagravarr', 'onealj', 'pjfanning', 'Alain-Bearez'])
userWhitelist(['centic9', 'poi-benchmark', 'tballison', 'gagravarr', 'onealj', 'pjfanning', 'Alain-Bearez'])
orgWhitelist(['apache'])
cron('H/5 * * * *')
triggerPhrase('OK to test')
}
}
} else {
triggers {
scm(trigger)
}
} }
def shellcmds = (poijob.windows ? shellCmdsWin : shellCmdsUnix).replace('POIJOBSHELL', poijob.shell ?: '') def shellcmds = (poijob.windows ? shellCmdsWin : shellCmdsUnix).replace('POIJOBSHELL', poijob.shell ?: '')
@ -521,15 +483,6 @@ poijobs.each { poijob ->
} }
} }
if (poijob.githubpr) {
configure {
it / 'properties' << 'com.cloudbees.jenkins.plugins.git.vmerge.JobPropertyImpl'(plugin: 'git-validated-merge') {
credentialsId('ASF_Cloudbees_Jenkins_ci-builds')
postBuildPushFailureHandler(class: 'com.cloudbees.jenkins.plugins.git.vmerge.pbph.PushFailureIsFailure')
}
}
}
} }
} }