Skip to content

Commit

Permalink
Set test config
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Oct 20, 2021
1 parent 22830f1 commit c34340d
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.buildchain
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pipeline {

configFileProvider([configFile(fileId: getSettingsXmlId(), variable: 'MAVEN_SETTINGS_FILE')]) {
withCredentials([string(credentialsId: 'kie-ci1-token', variable: 'GITHUB_TOKEN')]) {
sh "build-chain-action -token=${GITHUB_TOKEN} -df='https://raw.githubusercontent.com/kiegroup/kogito-pipelines/${getBuildChainConfigBranch()}/.ci/${buildChainActionInfo.file}' -folder='bc' build ${buildChainActionInfo.action} ${buildChainActionInfo.arguments} --skipParallelCheckout -cct '(^mvn .*)||\$1 -s ${MAVEN_SETTINGS_FILE} -Dmaven.wagon.http.ssl.insecure=true'"
sh "build-chain-action -token=${GITHUB_TOKEN} -df='https://raw.githubusercontent.com/radtriste/kogito-pipelines/${getBuildChainConfigBranch()}/.ci/${buildChainActionInfo.file}' -folder='bc' build ${buildChainActionInfo.action} ${buildChainActionInfo.arguments} --skipParallelCheckout -cct '(^mvn .*)||\$1 -s ${MAVEN_SETTINGS_FILE} -Dmaven.wagon.http.ssl.insecure=true'"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.release.prepare
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OPTAPLANNER_QUICKSTARTS_REPO = 'optaplanner-quickstarts'
PIPELINE_REPOS = ["${PIPELINE_REPO}"]
DROOLS_REPOS = ["drools"]
RUNTIMES_REPOS = ['kogito-runtimes', 'kogito-apps', 'kogito-examples']
OPTAPLANNER_REPOS = ["${OPTAPLANNER_REPO}", 'optaweb-vehicle-routing', 'optaweb-employee-rostering', "${OPTAPLANNER_QUICKSTARTS_REPO}:development"]
OPTAPLANNER_REPOS = ["${OPTAPLANNER_REPO}", 'optaweb-vehicle-routing', 'optaweb-employee-rostering', "${OPTAPLANNER_QUICKSTARTS_REPO}"]
IMAGES_REPOS = ['kogito-images']
OPERATOR_REPOS = ['kogito-operator']

Expand Down
51 changes: 26 additions & 25 deletions dsl/seed/config/branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ lts:
native_builder_image: quay.io/quarkus/ubi-quarkus-mandrel:21.1-java11

disable:
triggers: false
triggers: true
branch: false

repositories:
- name: kogito-pipelines
- name: drools
- name: kogito-runtimes
- name: optaplanner
- name: optaweb-employee-rostering
- name: optaweb-vehicle-routing
- name: optaplanner-quickstarts
branch: development
- name: kogito-apps
- name: kogito-examples
- name: kogito-images
- name: kogito-operator
- name: kogito-editors-java
# - name: optaplanner
# - name: optaweb-employee-rostering
# - name: optaweb-vehicle-routing
# - name: optaplanner-quickstarts
# branch: development
# - name: kogito-apps
# - name: kogito-examples
# - name: kogito-images
# - name: kogito-operator
# - name: kogito-editors-java

# Full Example
# repositories:
Expand All @@ -41,32 +41,33 @@ repositories:
# Main branch configuration
git:
author:
name: kiegroup
credentials_id: kie-ci
token_credentials_id: kie-ci2-token
name: radtriste
credentials_id: radtriste
token_credentials_id: radtriste-gh-token
bot_author:
name: bsig-gh-bot
credentials_id: bsig-gh-bot
name: radtriste-bot-account
credentials_id: radtriste-bot
jenkins_config_path: .ci/jenkins
maven:
settings_file_id: kogito_release_settings
settings_file_id: 2bd418aa-56fa-4403-9232-8c77a50fc528
nexus:
release_url: https://repository.jboss.org/nexus
release_url: https://repository.stage.jboss.org/nexus
release_repository: jboss-releases-repository
staging_profile_url: https://repository.jboss.org/nexus/content/groups/kogito-public/
staging_profile_url: https://repository.stage.jboss.org/nexus/content/groups/kogito-public/
staging_profile_id: 2161b7b8da0080
build_promotion_profile_id: ea49ccd6f174
artifacts_repository: ''
build_promotion_profile_id: 1966c60aff37d
artifacts_repository: http://nexus3-tradisso-nexus.apps.kogito-cloud.hosted.psi.rdu2.redhat.com/repository/kogito-test/
#artifacts_repository: ''
pr_checks:
repository:
url: https://bxms-qe.rhev-ci-vms.eng.rdu2.redhat.com:8443/nexus/content/repositories/kogito-runtimes-pr-full-testing/
creds_id: unpacks-zip-on-qa-nexus
cloud:
image:
registry_credentials_nightly: nightly_kogito
registry_credentials_release: release_kogito
registry_credentials_nightly: tradisso_registry_token
registry_credentials_release: tradisso_registry_token
registry: quay.io
namespace: kiegroup
namespace: tradisso
latest_git_branch: main
jenkins:
email_creds_id: KOGITO_CI_EMAIL_TO
email_creds_id: KOGITO_CI_EMAIL_TO_PERSO
5 changes: 1 addition & 4 deletions dsl/seed/config/main.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
git:
branches:
- main
- 1.11.x
- 1.12.x
- split_nightly_jobs
main_branch:
default: main
optaplanner-quickstarts: development
4 changes: 2 additions & 2 deletions dsl/seed/jobs/seed_job_main.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ pipelineJob('0-seed-job') {
stringParam('CUSTOM_AUTHOR', '', 'To generate only some custom repos... Define from from which author the custom repositories are checked out. If none given, then `SEED_AUTHOR` is taken. Ignored if `CUSTOM_BRANCH_KEY` is not set.')
stringParam('CUSTOM_MAIN_BRANCH', '', 'To generate only some custom repos... If no main_branch is given, then DSL config `git.main_branch` is taken. Ignored if `CUSTOM_BRANCH_KEY` is not set.')

stringParam('SEED_AUTHOR', getSeedAuthor(), 'If different from the default')
stringParam('SEED_BRANCH', getSeedBranch(), 'If different from the default')
stringParam('SEED_AUTHOR', 'radtriste', 'If different from the default')
stringParam('SEED_BRANCH', 'test-setup', 'If different from the default')

booleanParam('FORCE_REBUILD', false, 'Default, the job will scan for modified files and do the update in case some files are modified. In case you want to force the DSL generation')
}
Expand Down

0 comments on commit c34340d

Please sign in to comment.