This is an automated email from the ASF dual-hosted git repository. rantunes pushed a commit to branch kie-issues_821 in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git
commit d2a7982e29d15c54669383b5e5c2a8408f900b58 Author: Rodrigo Antunes <[email protected]> AuthorDate: Tue Jan 16 14:46:15 2024 -0300 Initial implementation of Drools weekly deploy job --- .ci/jenkins/config/branch.yaml | 28 ++++++++++++++++++++-------- .ci/jenkins/config/main.yaml | 9 ++------- .ci/jenkins/dsl/jobs.groovy | 37 ++++++++++++++++++++++++++++++++++++- 3 files changed, 58 insertions(+), 16 deletions(-) diff --git a/.ci/jenkins/config/branch.yaml b/.ci/jenkins/config/branch.yaml index 9685cb2cac..44c6ead85c 100644 --- a/.ci/jenkins/config/branch.yaml +++ b/.ci/jenkins/config/branch.yaml @@ -1,5 +1,25 @@ generation_config: missing_environment: ignore + +job_types: + setup-branch: + disabled: true + nightly: + disabled: false + other: + disabled: false + pullrequest: + disabled: true + release: + disabled: true + tools: + disabled: true + +disable: + triggers: true + deploy: true + pr_check: true + environments: default: env_vars: @@ -23,14 +43,6 @@ environments: repositories: - name: incubator-kie-drools job_display_name: drools -# Not yet migrated to Apache -# - name: incubator-kie-drools-website -# job_display_name: drools-website -- name: incubator-kie-benchmarks - job_display_name: kie-benchmarks -## TODO to check if should be enabled -# - name: incubator-kie-jpmml-integration -# job_display_name: kie-jpmml-integration git: author: name: apache diff --git a/.ci/jenkins/config/main.yaml b/.ci/jenkins/config/main.yaml index fd408e1723..0e79e26b43 100644 --- a/.ci/jenkins/config/main.yaml +++ b/.ci/jenkins/config/main.yaml @@ -5,14 +5,9 @@ ecosystem: regexs: - drools.* - incubator-kie-drools.* - - name: kie-benchmarks - ignore_release: true - regexs: - - kie-benchmarks.* - - incubator-kie-benchmarks.* git: branches: - - name: main + - name: kie-issues_821 main_branch: true seed: config_file: @@ -23,7 +18,7 @@ seed: credentials_id: ASF_Cloudbees_Jenkins_ci-builds push: credentials_id: 84811880-2025-45b6-a44c-2f33bef30ad2 - branch: main + branch: kie-issues_821 path: .ci/jenkins/config/branch.yaml jenkinsfile: dsl/seed/jenkinsfiles/Jenkinsfile.seed.branch jenkins: diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy index 105577d4fe..f2a87b20ed 100644 --- a/.ci/jenkins/dsl/jobs.groovy +++ b/.ci/jenkins/dsl/jobs.groovy @@ -214,6 +214,9 @@ setupSpecificBuildChainNightlyJob('sonarcloud', setupSonarProjectKeyEnv(nightlyJ setupDeployJob(JobType.RELEASE) setupPromoteJob(JobType.RELEASE) +// Weekly deploy job +setupProjectWeeklyJob() + // Tools job if (isMainStream()) { KogitoJobUtils.createQuarkusUpdateToolsJob(this, 'drools', [ @@ -335,4 +338,36 @@ void setupPromoteJob(JobType jobType) { booleanParam('SEND_NOTIFICATION', false, 'In case you want the pipeline to send a notification on CI channel for this run.') } } -} \ No newline at end of file +} + +void setupWeeklyDeployJob() { + def jobParams = JobParamsUtils.getBasicJobParams(this, 'kogito-apps-weekly-deploy', JobType.OTHER, "${jenkins_path}/Jenkinsfile.weekly.deploy", 'Drools Weekly Deploy') + jobParams.env.putAll([ + PROPERTIES_FILE_NAME: 'deployment.properties', + JENKINS_EMAIL_CREDS_ID: "${JENKINS_EMAIL_CREDS_ID}", + + GIT_AUTHOR: "${GIT_AUTHOR_NAME}", + GIT_AUTHOR_CREDS_ID: "${GIT_AUTHOR_CREDENTIALS_ID}", + GIT_AUTHOR_PUSH_CREDS_ID: "${GIT_AUTHOR_PUSH_CREDENTIALS_ID}", + + MAVEN_SETTINGS_CONFIG_FILE_ID: "${MAVEN_SETTINGS_FILE_ID}", + MAVEN_DEPENDENCIES_REPOSITORY: "${MAVEN_ARTIFACTS_REPOSITORY}", + MAVEN_DEPLOY_REPOSITORY: "${MAVEN_ARTIFACTS_UPLOAD_REPOSITORY_URL}", + MAVEN_REPO_CREDS_ID: "${MAVEN_ARTIFACTS_UPLOAD_REPOSITORY_CREDS_ID}", + + DROOLS_STREAM: Utils.getStream(this), + ]) + KogitoJobTemplate.createPipelineJob(this, jobParams)?.with { + parameters { + stringParam('DISPLAY_NAME', '', 'Setup a specific build display name') + + stringParam('BUILD_BRANCH_NAME', "${GIT_BRANCH}", 'Set the Git branch to checkout') + + booleanParam('SKIP_TESTS', false, 'Skip tests') + + stringParam('PROJECT_VERSION', '', 'Project Version to deploy') + + booleanParam('SEND_NOTIFICATION', false, 'In case you want the pipeline to send a notification on CI channel for this run.') + } + } +} --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
