From 0a2708aa0be2ced3b3b876e22eb4a377c8e5a0ee Mon Sep 17 00:00:00 2001 From: radtriste Date: Tue, 12 Sep 2023 15:16:21 +0200 Subject: [PATCH] remove optaplanner-website --- .ci/jenkins/config/branch.yaml | 2 +- .ci/jenkins/project/Jenkinsfile.post-release | 69 ++++++++++---------- 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/.ci/jenkins/config/branch.yaml b/.ci/jenkins/config/branch.yaml index 413e6d94a6..089fd1ef1e 100644 --- a/.ci/jenkins/config/branch.yaml +++ b/.ci/jenkins/config/branch.yaml @@ -26,7 +26,7 @@ disable: repositories: - name: optaplanner - name: optaplanner-quickstarts -- name: optaplanner-website +# - name: optaplanner-website // Not migrated yet - name: kie-benchmarks author: name: radtriste # TODO set back. Could not push to kiegroup diff --git a/.ci/jenkins/project/Jenkinsfile.post-release b/.ci/jenkins/project/Jenkinsfile.post-release index b0edb0cc47..724ed3c557 100644 --- a/.ci/jenkins/project/Jenkinsfile.post-release +++ b/.ci/jenkins/project/Jenkinsfile.post-release @@ -82,40 +82,41 @@ pipeline { } } - stage('Update OptaPlanner website') { - steps { - script { - final String websiteRepository = 'optaplanner-website' - String prLink = null - String prBranchName = "${getProjectVersion().toLowerCase()}-${env.PR_BRANCH_HASH}" - dir("$websiteRepository-pr") { - checkoutRepo(websiteRepository, 'main') // there is no other branch - githubscm.createBranch(prBranchName) - - // Update versions in links on the website and in the docs. - sh "./build/update-versions.sh ${getProjectVersion()} ${getNextMinorSnapshotVersion(getProjectVersion())}" - - // Update the XSDs. OptaPlanner must be cloned and build with the full profile before. - String optaplannerRoot = "${WORKSPACE}/${optaplannerRepository}" - String optaplannerWebsiteModule = 'optaplanner-website-root' - String optaplannerWebsiteXsd = "${optaplannerWebsiteModule}/content/xsd" - String optaplannerWebsiteDocs = 'optaplanner-website-docs' - sh "cp ${optaplannerRoot}/core/optaplanner-core-impl/target/classes/solver.xsd ${optaplannerWebsiteXsd}/solver/solver-${env.OPTAPLANNER_LATEST_STREAM}.xsd" - sh "cp ${optaplannerRoot}/optaplanner-benchmark/target/classes/benchmark.xsd ${optaplannerWebsiteXsd}/benchmark/benchmark-${env.OPTAPLANNER_LATEST_STREAM}.xsd" - - // Add changed files, commit, open and merge PR - prLink = commitAndCreatePR("Release OptaPlanner ${getProjectVersion()}", - { sh "git add $optaplannerWebsiteXsd/\\*.xsd $optaplannerWebsiteModule/data/pom.yml $optaplannerWebsiteDocs/antora-playbook.yml" }, - prBranchName, 'main') - } - dir(websiteRepository) { - checkoutRepo(websiteRepository, 'main') - mergeAndPush(prLink, 'main') - githubscm.removeRemoteBranch('origin', prBranchName, getGitAuthorCredsID()) - } - } - } - } + // Not migrated yet + // stage('Update OptaPlanner website') { + // steps { + // script { + // final String websiteRepository = 'optaplanner-website' + // String prLink = null + // String prBranchName = "${getProjectVersion().toLowerCase()}-${env.PR_BRANCH_HASH}" + // dir("$websiteRepository-pr") { + // checkoutRepo(websiteRepository, 'main') // there is no other branch + // githubscm.createBranch(prBranchName) + + // // Update versions in links on the website and in the docs. + // sh "./build/update-versions.sh ${getProjectVersion()} ${getNextMinorSnapshotVersion(getProjectVersion())}" + + // // Update the XSDs. OptaPlanner must be cloned and build with the full profile before. + // String optaplannerRoot = "${WORKSPACE}/${optaplannerRepository}" + // String optaplannerWebsiteModule = 'optaplanner-website-root' + // String optaplannerWebsiteXsd = "${optaplannerWebsiteModule}/content/xsd" + // String optaplannerWebsiteDocs = 'optaplanner-website-docs' + // sh "cp ${optaplannerRoot}/core/optaplanner-core-impl/target/classes/solver.xsd ${optaplannerWebsiteXsd}/solver/solver-${env.OPTAPLANNER_LATEST_STREAM}.xsd" + // sh "cp ${optaplannerRoot}/optaplanner-benchmark/target/classes/benchmark.xsd ${optaplannerWebsiteXsd}/benchmark/benchmark-${env.OPTAPLANNER_LATEST_STREAM}.xsd" + + // // Add changed files, commit, open and merge PR + // prLink = commitAndCreatePR("Release OptaPlanner ${getProjectVersion()}", + // { sh "git add $optaplannerWebsiteXsd/\\*.xsd $optaplannerWebsiteModule/data/pom.yml $optaplannerWebsiteDocs/antora-playbook.yml" }, + // prBranchName, 'main') + // } + // dir(websiteRepository) { + // checkoutRepo(websiteRepository, 'main') + // mergeAndPush(prLink, 'main') + // githubscm.removeRemoteBranch('origin', prBranchName, getGitAuthorCredsID()) + // } + // } + // } + // } } post { unsuccessful {