Browse Source

Jenkins DSL for Github PR build: Try to create the one file which is read from src/documentation during target 'jenkins'

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849887 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_4_1_0
Dominik Stadler 5 years ago
parent
commit
72b4229b3e
1 changed files with 10 additions and 7 deletions
  1. 10
    7
      jenkins/create_jobs.groovy

+ 10
- 7
jenkins/create_jobs.groovy View File

], ],
[ name: 'POI-DSL-Windows-1.8', trigger: 'H */12 * * *', windows: true, slaves: 'Windows' [ name: 'POI-DSL-Windows-1.8', trigger: 'H */12 * * *', windows: true, slaves: 'Windows'
], ],
[ name: 'POI-DSL-Github-PullRequests', trigger: '', githubpr: true, skipcigame: true
[ name: 'POI-DSL-Github-PullRequests', trigger: '', githubpr: true, skipcigame: 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 src/documentation\ntouch src/documentation/RELEASE-NOTES.txt'
], ],
] ]


stringParam('sha1', 'origin/pr/9/head', 'Provide a branch-spec, e.g. origin/pr/9/head') stringParam('sha1', 'origin/pr/9/head', 'Provide a branch-spec, e.g. origin/pr/9/head')
} }
triggers { triggers {
githubPullRequest {
/*githubPullRequest {
admins(['centic9', 'poi-benchmark', 'tballison', 'gagravarr', 'onealj', 'pjfanning', 'Alain-Bearez']) admins(['centic9', 'poi-benchmark', 'tballison', 'gagravarr', 'onealj', 'pjfanning', 'Alain-Bearez'])
userWhitelist(['centic9', 'poi-benchmark', 'tballison', 'gagravarr', 'onealj', 'pjfanning', 'Alain-Bearez']) userWhitelist(['centic9', 'poi-benchmark', 'tballison', 'gagravarr', 'onealj', 'pjfanning', 'Alain-Bearez'])
orgWhitelist(['apache']) orgWhitelist(['apache'])
cron('H/5 * * * *') cron('H/5 * * * *')
triggerPhrase('OK to test') triggerPhrase('OK to test')
}
}*/
} }
} else { } else {
triggers { triggers {
'JDK 12 (latest)', 'JDK 12 (latest)',
'OpenJDK 12 b18 (early access build)' 'OpenJDK 12 b18 (early access build)'
) )
elasticAxis {
/*elasticAxis {
name('Nodes') name('Nodes')
labelString('!cloud-slave&&!H15&&!H17&&!H18&&!H24&&!ubuntu-4&&!H21&&!H35&&!websites1&&!couchdb&&!plc4x&&!ppc64le') labelString('!cloud-slave&&!H15&&!H17&&!H18&&!H24&&!ubuntu-4&&!H21&&!H35&&!websites1&&!couchdb&&!plc4x&&!ppc64le')
ignoreOffline(true) ignoreOffline(true)
}
}*/
} }
steps { steps {
conditionalSteps { conditionalSteps {
fileExists('c:\\windows', BaseDir.WORKSPACE) fileExists('c:\\windows', BaseDir.WORKSPACE)
runner('DontRun') runner('DontRun')
steps { steps {
batchFile {
/*batchFile {
command( command(
'''@echo off '''@echo off
echo . echo .
echo . echo .
echo ^<?xml version=^"1.0^"?^>^<project name=^"POI Build^" default=^"test^"^>^<target name=^"test^"^>^<echo^>Using Ant: ${ant.version} from ${ant.home}^</echo^>^</target^>^</project^> > build.xml echo ^<?xml version=^"1.0^"?^>^<project name=^"POI Build^" default=^"test^"^>^<target name=^"test^"^>^<echo^>Using Ant: ${ant.version} from ${ant.home}^</echo^>^</target^>^</project^> > build.xml
''') ''')
}
}*/
ant { ant {
antInstallation(defaultAnt + ' (Windows)') antInstallation(defaultAnt + ' (Windows)')
} }

Loading…
Cancel
Save