Skip to content

Commit

Permalink
getProjectTriggering job error solved (#1544)
Browse files Browse the repository at this point in the history
* getProjectTriggering job error solved

* testing generate_files.yml error
  • Loading branch information
Ginxo committed Dec 9, 2020
1 parent b4f7b59 commit 5fb56cc
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .ci/compilation.stages
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ def call(def propertiesFolderPath) {
def file = readFile REPOSITORY_LIST_FILE
def projectCollection = file.readLines()
projectCollection.removeAll(['kie-jpmml-integration','kie-docs'])
def gitURL = env.ghprbAuthorRepoGitUrl ?: env.GIT_URL
def project = util.getProjectGroupName(util.getProject(gitURL))[1]
def project = util.getProjectTriggeringJob()[1]
compile.build(projectCollection, project, "${SETTINGS_XML_ID}", "${PROPERTIES_FILE_PATH}")
}
}
Expand Down
3 changes: 1 addition & 2 deletions .ci/fullDownstream.stages
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ def call(def propertiesFolderPath) {
println "Reading file ${REPOSITORY_LIST_FILE}"
def file = readFile REPOSITORY_LIST_FILE
def projectCollection = file.readLines()
def gitURL = env.ghprbAuthorRepoGitUrl ?: env.GIT_URL
def project = util.getProjectGroupName(util.getProject(gitURL))[1]
def project = util.getProjectTriggeringJob()[1]
projectCollection.removeAll(['droolsjbpm-tools', 'kie-docs'])
compile.build(projectCollection, project, "${SETTINGS_XML_ID}", "${PROPERTIES_FILE_PATH}")
}
Expand Down
3 changes: 1 addition & 2 deletions .ci/pullrequest.stages
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ def call(def propertiesFolderPath) {
println "Reading file ${REPOSITORY_LIST_FILE}"
def file = readFile REPOSITORY_LIST_FILE
def projectCollection = file.readLines()
def gitURL = env.ghprbAuthorRepoGitUrl ?: env.GIT_URL
def project = util.getProjectGroupName(util.getProject(gitURL))[1]
def project = util.getProjectTriggeringJob()[1]
if (project != "kie-docs") {
pullrequest.build(projectCollection, project, "${SETTINGS_XML_ID}", "${PROPERTIES_FILE_PATH}", "")
} else {
Expand Down
3 changes: 1 addition & 2 deletions .ci/upstream.stages
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ def call(def propertiesFolderPath) {
def file = readFile REPOSITORY_LIST_FILE
def projectCollection = file.readLines()
projectCollection.removeAll(['kie-jpmml-integration'])
def gitURL = env.ghprbAuthorRepoGitUrl ?: env.GIT_URL
def project = util.getProjectGroupName(util.getProject(gitURL))[1]
def project = util.getProjectTriggeringJob()[1]

treebuild.upstreamBuild(projectCollection, project, "${SETTINGS_XML_ID}", 'clean install -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true -Denforcer.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true')
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ jobs:
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
1 change: 0 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ pipeline {
steps {
script {
if(isPR()) {
def gitURL = env.ghprbAuthorRepoGitUrl ?: env.GIT_URL
def project = util.getProjectTriggeringJob()[1]
if(["optaplanner", "drools", "appformer", "jbpm", "drools-wb", "kie-soup", "droolsjbpm-integration", "kie-wb-common", "openshift-drools-hacep", "optaweb-employee-rostering", "optaweb-vehicle-routing"].contains(project))
{
Expand Down
1 change: 0 additions & 1 deletion Jenkinsfile.buildchain
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pipeline {
steps {
script {
if(isPR()) {
def gitURL = env.ghprbAuthorRepoGitUrl ?: env.GIT_URL
def project = util.getProjectTriggeringJob()[1]
if(["optaplanner", "drools", "appformer", "jbpm", "drools-wb", "kie-soup", "droolsjbpm-integration", "kie-wb-common", "openshift-drools-hacep", "optaweb-employee-rostering", "optaweb-vehicle-routing"].contains(project))
{
Expand Down

0 comments on commit 5fb56cc

Please sign in to comment.