forked from kiegroup/droolsjbpm-build-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pullrequest.stages
20 lines (19 loc) · 961 Bytes
/
pullrequest.stages
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def call(def propertiesFolderPath) {
stage('Pull Request Build') {
final REPOSITORY_LIST_FILE = "./script/repository-list.txt"
final SETTINGS_XML_ID = "771ff52a-a8b4-40e6-9b22-d54c7314aa1e"
final PROPERTIES_FILE_PATH = "${propertiesFolderPath}/pullrequest.properties"
configFileProvider([configFile(fileId: SETTINGS_XML_ID, variable: 'MAVEN_SETTINGS_XML_UPSTREAM')]) {
println "Reading file ${REPOSITORY_LIST_FILE}"
def file = readFile REPOSITORY_LIST_FILE
def projectCollection = file.readLines()
def project = util.getProjectTriggeringJob()[1]
if (project != "kie-docs") {
pullrequest.build(projectCollection, project, "${SETTINGS_XML_ID}", "${PROPERTIES_FILE_PATH}", "")
} else {
pullrequest.build(["kie-docs"], project, "${SETTINGS_XML_ID}", "${PROPERTIES_FILE_PATH}", "")
}
}
}
}
return this