This is an automated email from the ASF dual-hosted git repository.
ricardozanini pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-pipelines.git
The following commit(s) were added to refs/heads/main by this push:
new 746f19b9 Fix #1178 - Remove Kogito Operator pipelines and references
(#1179)
746f19b9 is described below
commit 746f19b953a51bb0dfa93d8dc4b4db9b8dffb49e
Author: Ricardo Zanini <[email protected]>
AuthorDate: Mon Feb 12 12:15:11 2024 -0300
Fix #1178 - Remove Kogito Operator pipelines and references (#1179)
---
.ci/jenkins/Jenkinsfile.build-operator-node | 62 ---------
.ci/jenkins/Jenkinsfile.nightly.cloud | 110 +++-------------
.ci/jenkins/Jenkinsfile.release.cloud | 141 ---------------------
.ci/jenkins/Jenkinsfile.setup-branch.cloud | 47 ++-----
.ci/jenkins/config/branch.yaml | 2 -
.ci/jenkins/dsl/jobs.groovy | 16 ---
README.md | 3 -
docs/current_pipelines.md | 1 -
docs/release pipeline.md | 14 +-
kogito-jenkins-node/image.yaml | 27 ----
kogito-jenkins-node/modules/cekit/3.8.x/configure | 23 ----
.../modules/cekit/3.8.x/module.yaml | 13 --
.../modules/golang-installer/1.17.x/install.sh | 21 ---
.../modules/golang-installer/1.17.x/module.yaml | 14 --
.../modules/golang-installer/1.19.x/install.sh | 21 ---
.../modules/golang-installer/1.19.x/module.yaml | 14 --
.../modules/graalvm-installer/22.3/configure | 22 ----
.../modules/graalvm-installer/22.3/module.yaml | 20 ---
kogito-jenkins-node/modules/jenkins-user/create.sh | 24 ----
.../modules/jenkins-user/module.yaml | 6 -
.../modules/maven-installer/3.8.x/install.sh | 20 ---
.../modules/maven-installer/3.8.x/module.yaml | 16 ---
.../modules/podman/config/containers.conf | 1 -
kogito-jenkins-node/modules/podman/module.yaml | 17 ---
kogito-jenkins-node/modules/podman/updateConfig.sh | 24 ----
25 files changed, 29 insertions(+), 650 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.build-operator-node
b/.ci/jenkins/Jenkinsfile.build-operator-node
deleted file mode 100644
index cfd6293b..00000000
--- a/.ci/jenkins/Jenkinsfile.build-operator-node
+++ /dev/null
@@ -1,62 +0,0 @@
-import org.jenkinsci.plugins.workflow.libs.Library
-
-@Library('jenkins-pipeline-shared-libraries')_
-
-pipeline {
- agent {
- label util.avoidFaultyNodes('ubuntu')
- }
-
- options {
- timeout(time: 60, unit: 'MINUTES')
- }
-
- // environment {
- // Some generated env is also defined into ./dsl/jobs.groovy file
- // }
-
- stages {
- stage('Checkout repo') {
- steps {
- script {
- deleteDir()
-
checkout(githubscm.resolveRepository('incubator-kogito-pipelines', 'apache',
'main', false))
- }
- }
- }
- stage('Build image') {
- steps {
- script {
- dir('kogito-operator-jenkins-node') {
- sh 'cekit -v build docker'
- }
- }
- }
- }
- stage('Tag and push') {
- steps {
- script {
- String version = ''
- dir('kogito-operator-jenkins-node') {
- version = sh(returnStdout:true, script: 'grep
^version: image.yaml | awk -F\\" \'{print $2}\'').trim()
- }
- echo "Got version for tagging -> ${version}"
-
- sh """
- docker tag kogito-operator-jenkins-node:latest
quay.io/kiegroup/kogito-operator-jenkins-node:${version}
- docker tag kogito-operator-jenkins-node:latest
quay.io/kiegroup/kogito-operator-jenkins-node:latest
- """
-
- withCredentials([usernamePassword(credentialsId:
'nightly_kogito', usernameVariable: 'REGISTRY_USER', passwordVariable:
'REGISTRY_PWD')]) {
- sh "docker login -u ${REGISTRY_USER} -p
${REGISTRY_PWD} quay.io"
- }
-
- sh """
- docker push
quay.io/kiegroup/kogito-operator-jenkins-node:${version}
- docker push
quay.io/kiegroup/kogito-operator-jenkins-node:latest
- """
- }
- }
- }
- }
-}
diff --git a/.ci/jenkins/Jenkinsfile.nightly.cloud
b/.ci/jenkins/Jenkinsfile.nightly.cloud
index ea978feb..aa0c2120 100644
--- a/.ci/jenkins/Jenkinsfile.nightly.cloud
+++ b/.ci/jenkins/Jenkinsfile.nightly.cloud
@@ -4,8 +4,6 @@ import org.jenkinsci.plugins.workflow.libs.Library
// Deploy jobs
IMAGES_DEPLOY = 'kogito-images-deploy'
-EXAMPLES_IMAGES_DEPLOY = 'kogito-examples-images-deploy'
-OPERATOR_DEPLOY = 'kogito-operator-deploy'
SEVERLESS_OPERATOR_DEPLOY = 'kogito-serverless-operator-deploy'
// Map of executed jobs
@@ -17,10 +15,6 @@ FAILED_STAGES = [:]
UNSTABLE_STAGES = [:]
defaultImageParamsPrefix = 'IMAGE'
-kogitoImagesParamsPrefix = 'KOGITO_IMAGES'
-examplesImagesParamsPrefix = 'EXAMPLES_IMAGES'
-baseImageParamsPrefix = 'BASE_IMAGE'
-promoteImageParamsPrefix = 'PROMOTE_IMAGE'
// Should be multibranch pipeline
pipeline {
@@ -48,7 +42,7 @@ pipeline {
returnStdout: true,
script: 'date -u "+%Y-%m-%d"'
).trim()}"""
-}
+ }
stages {
stage('Initialize') {
@@ -76,7 +70,6 @@ pipeline {
// For testing
addSkipTestsParam(buildParams)
- addExamplesParam(buildParams)
// Ask to create the PR with changes occuring in this
addBooleanParam(buildParams, 'CREATE_PR', true)
@@ -91,83 +84,23 @@ pipeline {
}
}
- stage('Build examples images & BDD testing') {
- parallel {
- stage('Build examples images & BDD testing') {
- stages {
- stage('Build & Deploy Examples Images') {
- when {
- expression { return isExamplesImagesDeploy() }
- }
- steps {
- script {
- def buildParams = getDefaultBuildParams()
- addSkipTestsParam(buildParams)
- addImageBuildParams(buildParams,
env.NIGHTLY_TAG)
- addStringParam(buildParams,
constructKey(defaultImageParamsPrefix, 'NAME_PREFIX'), 'examples')
-
addDeployImageWithLatestTagParam(buildParams)
-
- // For BDD tests
- addImageBuildParams(buildParams,
env.NIGHTLY_TAG, kogitoImagesParamsPrefix)
- addExamplesParam(buildParams)
-
- buildJob(EXAMPLES_IMAGES_DEPLOY,
buildParams)
- }
- }
- post {
- failure {
- addFailedStage(EXAMPLES_IMAGES_DEPLOY)
- }
- }
- }
- stage('Build & Deploy Operator') {
- when {
- expression { return isOperatorDeploy() }
- }
- steps {
- script {
- def buildParams = getDefaultBuildParams()
- addSkipTestsParam(buildParams)
- addImageBuildParams(buildParams,
env.NIGHTLY_TAG)
-
addDeployImageWithLatestTagParam(buildParams)
-
- // For BDD tests
- addImageBuildParams(buildParams,
env.NIGHTLY_TAG, kogitoImagesParamsPrefix)
- addImageBuildParams(buildParams,
env.NIGHTLY_TAG, examplesImagesParamsPrefix)
- addStringParam(buildParams,
constructKey(examplesImagesParamsPrefix, 'CACHE_MODE'),
isExamplesImagesDeploy() ? 'always' : 'never')
- addStringParam(buildParams,
constructKey(examplesImagesParamsPrefix, 'NAME_PREFIX'), 'examples')
- addExamplesParam(buildParams)
-
- buildJob(OPERATOR_DEPLOY, buildParams)
- }
- }
- post {
- failure {
- addFailedStage(OPERATOR_DEPLOY)
- }
- }
- }
- }
+ stage('Build & Deploy Serverless Operator') {
+ when {
+ expression { return isOperatorDeploy() }
+ }
+ steps {
+ script {
+ def buildParams = getDefaultBuildParams()
+ addSkipTestsParam(buildParams)
+ addImageBuildParams(buildParams, env.NIGHTLY_TAG)
+ addDeployImageWithLatestTagParam(buildParams)
+
+ buildJob(SEVERLESS_OPERATOR_DEPLOY, buildParams)
}
- stage('Build & Deploy Serverless Operator') {
- when {
- expression { return isOperatorDeploy() }
- }
- steps {
- script {
- def buildParams = getDefaultBuildParams()
- addSkipTestsParam(buildParams)
- addImageBuildParams(buildParams, env.NIGHTLY_TAG)
- addDeployImageWithLatestTagParam(buildParams)
-
- buildJob(SEVERLESS_OPERATOR_DEPLOY, buildParams)
- }
- }
- post {
- failure {
- addFailedStage(SEVERLESS_OPERATOR_DEPLOY)
- }
- }
+ }
+ post {
+ failure {
+ addFailedStage(SEVERLESS_OPERATOR_DEPLOY)
}
}
}
@@ -269,11 +202,6 @@ void addAppsParam(buildParams) {
addStringParam(buildParams, 'APPS_URI',
"https://github.com/${getGitAuthor()}/incubator-kie-kogito-apps")
}
-void addExamplesParam(buildParams) {
- addStringParam(buildParams, 'EXAMPLES_URI',
"https://github.com/${getGitAuthor()}/incubator-kie-kogito-examples")
- addStringParam(buildParams, 'EXAMPLES_REF', "nightly-${getBuildBranch()}")
-}
-
void addImageBuildParams(List buildParams, String tag, String paramsPrefix =
defaultImageParamsPrefix, String extraSuffix = '') {
addStringParam(buildParams, constructKey(paramsPrefix,
'REGISTRY_CREDENTIALS'), env.IMAGE_REGISTRY_CREDENTIALS)
addStringParam(buildParams, constructKey(paramsPrefix, 'REGISTRY'),
env.IMAGE_REGISTRY)
@@ -318,10 +246,6 @@ boolean isImagesDeploy() {
return !params.SKIP_IMAGES
}
-boolean isExamplesImagesDeploy() {
- return !params.SKIP_EXAMPLES_IMAGES
-}
-
boolean isOperatorDeploy() {
return !params.SKIP_OPERATOR
}
diff --git a/.ci/jenkins/Jenkinsfile.release.cloud
b/.ci/jenkins/Jenkinsfile.release.cloud
index 9eda778d..4b3c46d4 100644
--- a/.ci/jenkins/Jenkinsfile.release.cloud
+++ b/.ci/jenkins/Jenkinsfile.release.cloud
@@ -3,8 +3,6 @@ import org.jenkinsci.plugins.workflow.libs.Library
@Library('jenkins-pipeline-shared-libraries')_
kogitoImagesRepo = 'kogito-images'
-kogitoExamplesImagesRepo = 'kogito-examples-images'
-kogitoOperatorRepo = 'kogito-operator'
kogitoServerlessOperatorRepo = 'kogito-serverless-operator'
ARTIFACTS_STAGING_STAGE = 'stage.artifacts.staging'
@@ -19,8 +17,6 @@ JOB_DECISION_MESSAGE_PROPERTY_KEY = 'decisionMessage'
releaseProperties = [:]
defaultImageParamsPrefix = 'IMAGE'
-kogitoImagesParamsPrefix = 'KOGITO_IMAGES'
-examplesImagesParamsPrefix = 'EXAMPLES_IMAGES'
baseImageParamsPrefix = 'BASE_IMAGE'
promoteImageParamsPrefix = 'PROMOTE_IMAGE'
@@ -62,7 +58,6 @@ pipeline {
always {
setReleasePropertyIfneeded('kogito.version',
getKogitoVersion())
setReleasePropertyIfneeded('kogito.images.version',
getKogitoImagesVersion())
- setReleasePropertyIfneeded('kogito.operator.version',
getKogitoOperatorVersion())
setReleasePropertyIfneeded('kogito.serverless.operator.version',
getKogitoServerlessOperatorVersion())
setReleasePropertyIfneeded('deploy.latest',
isDeployAsLatest())
}
@@ -72,18 +67,12 @@ pipeline {
stage('Setup configuration for testing') {
steps {
script {
- env.EXAMPLES_URI = params.EXAMPLES_URI ?:
(getReleaseProperty('examples.uri') ?:
"https://github.com/${getGitAuthor()}/incubator-kie-kogito-examples")
- env.EXAMPLES_REF = params.EXAMPLES_REF ?:
(getReleaseProperty('examples.ref') ?: getKogitoVersion())
env.APPS_URI = params.APPS_URI ?:
(getReleaseProperty('apps.uri') ?:
"https://github.com/${getGitAuthor()}/incubator-kie-kogito-apps")
env.APPS_REF = params.APPS_REF ?:
(getReleaseProperty('apps.ref') ?: getKogitoVersion())
- echo "Got examples uri ${env.EXAMPLES_URI}"
- echo "Got examples ref ${env.EXAMPLES_REF}"
echo "Got apps uri ${env.APPS_URI}"
echo "Got apps ref ${env.APPS_REF}"
- setReleasePropertyIfneeded('examples.uri',
env.EXAMPLES_URI)
- setReleasePropertyIfneeded('examples.ref',
env.EXAMPLES_REF)
setReleasePropertyIfneeded('apps.uri', env.APPS_URI)
setReleasePropertyIfneeded('apps.ref', env.APPS_REF)
}
@@ -108,61 +97,6 @@ pipeline {
}
}
- stage('Build & Deploy Examples Images') {
- when {
- expression { return isExamplesImagesRelease() }
- }
- steps {
- script {
- def buildParams = getDefaultBuildParams(getKogitoVersion())
- addSkipTestsParam(buildParams)
- addImageBuildParams(buildParams,
getKogitoExamplesImagesTempTag())
- addStringParam(buildParams,
constructKey(defaultImageParamsPrefix, 'NAME_PREFIX'), 'examples')
-
- // For BDD tests
- addImageBuildParams(buildParams, getKogitoImagesTempTag(),
false, kogitoImagesParamsPrefix)
- addExamplesParam(buildParams)
-
- buildJob(getDeployJobName(kogitoExamplesImagesRepo),
buildParams)
- }
- }
- }
-
- stage('Build & Deploy Kogito Operator') {
- when {
- expression { return isOperatorRelease() }
- }
- steps {
- script {
- def buildParams =
getDefaultBuildParams(getKogitoOperatorVersion())
- addSkipTestsParam(buildParams)
- addImageBuildParams(buildParams,
getKogitoOperatorTempTag())
-
- // For BDD tests
- // We use the quay image registry for temp images until
https://issues.redhat.com/browse/KOGITO-2219 is solved
- if (isImagesRelease()) {
- addImageBuildParams(buildParams,
getKogitoImagesTempTag(), false, kogitoImagesParamsPrefix)
- } else {
- // If we are in that case, we suppose images have been
released ...
- addImageBuildParams(buildParams,
getKogitoImagesFinalTag(), true, kogitoImagesParamsPrefix)
- }
-
- if (isExamplesImagesRelease()) {
- addImageBuildParams(buildParams,
getKogitoExamplesImagesTempTag(), false, examplesImagesParamsPrefix)
- } else {
- // If we are in that case, we suppose images have been
released ...
- addImageBuildParams(buildParams,
getKogitoExamplesImagesFinalTag(), true, examplesImagesParamsPrefix)
- }
- addStringParam(buildParams,
constructKey(examplesImagesParamsPrefix, 'CACHE_MODE'), 'always')
- addStringParam(buildParams,
constructKey(examplesImagesParamsPrefix, 'NAME_PREFIX'), 'examples')
-
- addExamplesParam(buildParams)
-
- buildJob(getDeployJobName(kogitoOperatorRepo), buildParams)
- }
- }
- }
-
stage('Build & Deploy Kogito Serverless Operator') {
when {
expression { return isServerlessOperatorRelease() }
@@ -196,48 +130,6 @@ pipeline {
}
}
- stage('Promote Examples Images') {
- when {
- expression { return isExamplesImagesRelease() &&
isJobConsideredOk(getDeployJobName(kogitoExamplesImagesRepo)) }
- }
- steps {
- script {
- def buildParams = getDefaultBuildParams(getKogitoVersion())
-
- addDeployBuildUrlParamOrClosure(buildParams,
getDeployJobName(kogitoExamplesImagesRepo)) {
- addImageBuildParams(buildParams,
getKogitoExamplesImagesTempTag(), false, baseImageParamsPrefix)
- addStringParam(buildParams,
constructKey(baseImageParamsPrefix, 'NAME_PREFIX'), 'examples')
- }
-
- addImageBuildParams(buildParams,
getKogitoExamplesImagesFinalTag(), true, promoteImageParamsPrefix)
- addStringParam(buildParams,
constructKey(promoteImageParamsPrefix, 'NAME_PREFIX'), 'examples')
- addBooleanParam(buildParams, 'DEPLOY_WITH_LATEST_TAG',
isDeployAsLatest())
-
- buildJob(getPromoteJobName(kogitoExamplesImagesRepo),
buildParams)
- }
- }
- }
-
- stage('Promote Kogito Operator') {
- when {
- expression { return isOperatorRelease() &&
isJobConsideredOk(getDeployJobName(kogitoOperatorRepo)) }
- }
- steps {
- script {
- def buildParams =
getDefaultBuildParams(getKogitoOperatorVersion())
- addDeployBuildUrlParamOrClosure(buildParams,
getDeployJobName(kogitoOperatorRepo)) {
- addImageBuildParams(buildParams,
getKogitoOperatorTempTag(), false, baseImageParamsPrefix)
- }
-
- // Base image information is given by the deploy URL
- addImageBuildParams(buildParams,
getKogitoOperatorFinalTag(), true, promoteImageParamsPrefix)
- addBooleanParam(buildParams, 'DEPLOY_WITH_LATEST_TAG',
isDeployAsLatest())
-
- buildJob(getPromoteJobName(kogitoOperatorRepo),
buildParams)
- }
- }
- }
-
stage('Promote Kogito Serverless Operator') {
when {
expression { return isServerlessOperatorRelease() &&
isJobConsideredOk(getDeployJobName(kogitoServerlessOperatorRepo)) }
@@ -468,11 +360,6 @@ void addAppsParam(buildParams) {
addStringParam(buildParams, 'APPS_REF', env.APPS_REF)
}
-void addExamplesParam(buildParams) {
- addStringParam(buildParams, 'EXAMPLES_URI', env.EXAMPLES_URI)
- addStringParam(buildParams, 'EXAMPLES_REF', env.EXAMPLES_REF)
-}
-
void addImageBuildParams(List buildParams, String tag, boolean isFinalImage =
false, String paramsPrefix = defaultImageParamsPrefix) {
addBooleanParam(buildParams, constructKey(paramsPrefix,
'USE_OPENSHIFT_REGISTRY'), !isFinalImage && params.USE_TEMP_OPENSHIFT_REGISTRY)
addStringParam(buildParams, constructKey(paramsPrefix,
'REGISTRY_CREDENTIALS'), env.IMAGE_REGISTRY_CREDENTIALS)
@@ -509,10 +396,6 @@ String getKogitoImagesVersion() {
return params.KOGITO_IMAGES_VERSION ?:
(getReleaseProperty('kogito.images.version') ?:
removeVersionSuffixIfExist(getKogitoVersion()))
}
-String getKogitoOperatorVersion() {
- return params.KOGITO_OPERATOR_VERSION ?:
(getReleaseProperty('kogito.operator.version') ?:
removeVersionSuffixIfExist(getKogitoVersion()))
-}
-
String getKogitoServerlessOperatorVersion() {
return params.KOGITO_SERVERLESS_OPERATOR_VERSION ?:
(getReleaseProperty('kogito.serverless.operator.version') ?:
removeVersionSuffixIfExist(getKogitoVersion()))
}
@@ -529,14 +412,6 @@ boolean isImagesRelease() {
return !params.SKIP_IMAGES_RELEASE
}
-boolean isExamplesImagesRelease() {
- return !params.SKIP_EXAMPLES_IMAGES_RELEASE
-}
-
-boolean isOperatorRelease() {
- return !params.SKIP_OPERATOR_RELEASE
-}
-
boolean isServerlessOperatorRelease() {
return !params.SKIP_SERVERLESS_OPERATOR_RELEASE
}
@@ -549,22 +424,6 @@ String getKogitoImagesFinalTag() {
return "${getKogitoImagesVersion()}".toLowerCase()
}
-String getKogitoExamplesImagesTempTag() {
- return "${getKogitoVersion()}-temp".toLowerCase()
-}
-
-String getKogitoExamplesImagesFinalTag() {
- return "${getKogitoVersion()}".toLowerCase()
-}
-
-String getKogitoOperatorTempTag() {
- return "${getKogitoOperatorVersion()}-temp".toLowerCase()
-}
-
-String getKogitoOperatorFinalTag() {
- return "${getKogitoOperatorVersion()}".toLowerCase()
-}
-
String getKogitoServerlessOperatorTempTag() {
return "${getKogitoServerlessOperatorVersion()}-temp".toLowerCase()
}
diff --git a/.ci/jenkins/Jenkinsfile.setup-branch.cloud
b/.ci/jenkins/Jenkinsfile.setup-branch.cloud
index c0fe1cb7..aefad5e7 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch.cloud
+++ b/.ci/jenkins/Jenkinsfile.setup-branch.cloud
@@ -10,10 +10,6 @@ JOBS = [:]
FAILED_STAGES = [:]
UNSTABLE_STAGES = [:]
-defaultImageParamsPrefix = 'IMAGE'
-kogitoImagesParamsPrefix = 'KOGITO_IMAGES'
-examplesImagesParamsPrefix = 'EXAMPLES_IMAGES'
-
pipeline {
agent {
label util.avoidFaultyNodes('ubuntu')
@@ -52,40 +48,17 @@ pipeline {
}
}
- stage('Init operators') {
- parallel {
- stage('Init Kogito Operator') {
- stages {
- stage('Init Operator') {
- steps {
- script {
- def buildParams = getDefaultBuildParams()
- addStringParam(buildParams,
'PROJECT_VERSION', getKogitoVersion().toLowerCase())
- buildJob('kogito-operator', buildParams)
- }
- }
- post {
- failure {
- addFailedStage('kogito-operator')
- }
- }
- }
- }
+ stage('Init Serverless Operator') {
+ steps {
+ script {
+ def buildParams = getDefaultBuildParams()
+ addStringParam(buildParams, 'PROJECT_VERSION',
getKogitoVersion().toLowerCase())
+ buildJob('kogito-serverless-operator', buildParams)
}
-
- stage('Init Serverless Operator') {
- steps {
- script {
- def buildParams = getDefaultBuildParams()
- addStringParam(buildParams, 'PROJECT_VERSION',
getKogitoVersion().toLowerCase())
- buildJob('kogito-serverless-operator', buildParams)
- }
- }
- post {
- failure {
- addFailedStage('kogito-serverless-operator')
- }
- }
+ }
+ post {
+ failure {
+ addFailedStage('kogito-serverless-operator')
}
}
}
diff --git a/.ci/jenkins/config/branch.yaml b/.ci/jenkins/config/branch.yaml
index 2330dd57..78326a0b 100644
--- a/.ci/jenkins/config/branch.yaml
+++ b/.ci/jenkins/config/branch.yaml
@@ -30,8 +30,6 @@ repositories:
job_display_name: kogito-examples
- name: incubator-kie-kogito-images
job_display_name: kogito-images
-- name: incubator-kie-kogito-operator
- job_display_name: kogito-operator
- name: incubator-kie-kogito-serverless-operator
job_display_name: kogito-serverless-operator
- name: incubator-kie-kogito-docs
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index 65a257c0..3a0f0e22 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -38,9 +38,6 @@ if (isMainStream()) {
setupCleanOldNightlyImagesToolsJob()
KogitoJobUtils.createQuarkusPlatformUpdateToolsJob(this, 'kogito')
- if (Utils.isMainBranch(this)) {
- setupBuildOperatorNode()
- }
KogitoJobUtils.createMainQuarkusUpdateToolsJob(this,
[ 'kogito-runtimes', 'kogito-examples', 'kogito-docs', 'kogito-images'
],
@@ -249,7 +246,6 @@ void setupNightlyCloudJob() {
booleanParam('SKIP_TESTS', false, 'Skip all tests')
booleanParam('SKIP_IMAGES', false, 'To skip Images Deployment')
- booleanParam('SKIP_EXAMPLES_IMAGES', false, 'To skip Examples
Images Deployment')
booleanParam('SKIP_OPERATOR', false, 'To skip Operator Deployment')
booleanParam('USE_TEMP_OPENSHIFT_REGISTRY', false, 'If enabled,
use Openshift registry to push temporary images')
@@ -317,7 +313,6 @@ void setupReleaseCloudJob() {
stringParam('KOGITO_VERSION', '', 'Kogito version to release as
Major.minor.micro')
stringParam('KOGITO_IMAGES_VERSION', '', '(optional) To be set if
different from KOGITO_VERSION. Should be only a bug fix update from
KOGITO_VERSION.')
- stringParam('KOGITO_OPERATOR_VERSION', '', '(optional) To be set
if different from KOGITO_VERSION. Should be only a bug fix update from
KOGITO_VERSION.')
stringParam('KOGITO_SERVERLESS_OPERATOR_VERSION', '', '(optional)
To be set if different from KOGITO_VERSION. Should be only a bug fix update
from KOGITO_VERSION.')
booleanParam('DEPLOY_AS_LATEST', false, 'Given project version is
considered the latest version')
@@ -326,21 +321,10 @@ void setupReleaseCloudJob() {
booleanParam('SKIP_TESTS', false, 'Skip all tests')
- stringParam('EXAMPLES_URI', '', 'Override default. Git uri to the
kogito-examples repository to use for tests.')
- stringParam('EXAMPLES_REF', '', 'Override default. Git reference
(branch/tag) to the kogito-examples repository to use for tests.')
-
booleanParam('SKIP_IMAGES_RELEASE', false, 'To skip Images Test &
Deployment.')
- booleanParam('SKIP_EXAMPLES_IMAGES_RELEASE', false, 'To skip
Examples Images Deployment')
- booleanParam('SKIP_OPERATOR_RELEASE', false, 'To skip Operator
Test & Deployment.')
booleanParam('SKIP_SERVERLESS_OPERATOR_RELEASE', false, 'To skip
Serverless Operator Test & Deployment.')
booleanParam('USE_TEMP_OPENSHIFT_REGISTRY', false, 'If enabled,
use Openshift registry to push temporary images')
}
}
}
-
-void setupBuildOperatorNode() {
- def jobParams = JobParamsUtils.getBasicJobParams(this,
'build-operator-node', JobType.TOOLS,
"${jenkins_path}/Jenkinsfile.build-operator-node")
- KogitoJobTemplate.createPipelineJob(this, jobParams)
-}
-
diff --git a/README.md b/README.md
index 914e00ae..6f17e64e 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,6 @@ Apart from this repository, pipelines are also concerning
those repositories:
* [kogito-apps](https://github.com/apache/incubator-kie-kogito-apps)
* [kogito-examples](https://github.com/apache/incubator-kie-kogito-examples)
* [kogito-images](https://github.com/apache/incubator-kie-kogito-images)
-* [kogito-operator](https://github.com/apache/incubator-kie-kogito-operator)
* [kie-tools](https://github.com/apache/incubator-kie-tools)
# The different Kogito pipelines
@@ -96,8 +95,6 @@ There is one check per downstream repository. This allows
parallelization and mo
`kogito-images` is run only on Jenkins and is using its own
`.ci/jenkins/Jenkinsfile`.
-`kogito-operator` is run on another Jenkins and is using its own
`.ci/jenkins/Jenkinsfile`.
-
**NOTE:** PR checks are also available for the different environments listed
above. Please read the PR template to know which one are available for a
specific repository.
#### Jenkins artifacts PR checks
diff --git a/docs/current_pipelines.md b/docs/current_pipelines.md
index 06a4b648..6f9e8685 100644
--- a/docs/current_pipelines.md
+++ b/docs/current_pipelines.md
@@ -15,7 +15,6 @@ Here is a small overview of current pipelines existing around
Kogito project.
- https://github.com/apache/incubator-kie-kogito-apps
- https://github.com/apache/incubator-kie-kogito-examples
- https://github.com/apache/incubator-kie-kogito-images
- - https://github.com/apache/incubator-kie-kogito-operator
- https://github.com/apache/incubator-kie-kogito-docs
- https://github.com/apache/incubator-kie-kogito-serverless-operator
- https://github.com/apache/incubator-kie-docs
diff --git a/docs/release pipeline.md b/docs/release pipeline.md
index c8090e8d..49091ca7 100644
--- a/docs/release pipeline.md
+++ b/docs/release pipeline.md
@@ -46,10 +46,7 @@ Here is the list of jobs and link to Jenkinsfiles:
*
[kogito-examples-promote](https://github.com/apache/incubator-kie-kogito-examples/blob/main/Jenkinsfile.promote)
*
[kogito-images-deploy](https://github.com/apache/incubator-kie-kogito-images/blob/main/Jenkinsfile.deploy)
*
[kogito-images-promote](https://github.com/apache/incubator-kie-kogito-images/blob/main/Jenkinsfile.promote)
-*
[kogito-examples-images-deploy](https://github.com/apache/incubator-kie-kogito-operator/blob/main/Jenkinsfile.examples-images.deploy)
-*
[kogito-examples-images-promote](https://github.com/apache/incubator-kie-kogito-operator/blob/main/Jenkinsfile.examples-images.promote)
-*
[kogito-operator-deploy](https://github.com/apache/incubator-kie-kogito-operator/blob/main/Jenkinsfile.deploy)
-*
[kogito-operator-promote](https://github.com/apache/incubator-kie-kogito-operator/blob/main/Jenkinsfile.promote)
+
## Release process
@@ -119,7 +116,6 @@ In order to start, here are the minimal parameters to the
Release Pipeline:
The Release pipeline can be tweaked with some other parameters if needed.
One option is the possibility to skip some stages, depending on which part you
want to release.
-**NOTE: If you decide to skip the runtimes/examples part, please be careful on
`EXAMPLES_URI` and `EXAMPLES_REF` parameters**
See [Release Jenkinsfile](../Jenkinsfile.release) for the full list on
parameters.
@@ -159,7 +155,7 @@ Once the Release Pipeline is finished, there are some
actions to be done:
##### Operator Crd/Csv files
-Once the operator's release has been done, it created new csv and crd files
under `deploy/olm-catalog/kogito-operator/{VERSION}` on the release branch in
[kogito-operator](https://github.com/apache/incubator-kie-kogito-operator).
+Once the operator's release has been done, it created new csv and crd files
under `deploy/olm-catalog/kogito-serverless-operator/{VERSION}` on the release
branch in
[kogito-serverless-operator](https://github.com/apache/incubator-kie-kogito-serverless-operator).
You will need to create, with those files, new OperatorHub PRs (one for
Openshift and one for Kubernetes) or asked someone from Cloud part to do it.
If there is any change to be done due to PRs, do it on the release branch.
@@ -180,17 +176,11 @@ To deploy only artifacts (without Cloud part), you should
start the release pipe
* SKIP_IMAGES_DEPLOY => checked
* SKIP_IMAGES_PROMOTE => checked
-* SKIP_EXAMPLES_IMAGES_DEPLOY => checked
-* SKIP_EXAMPLES_IMAGES_PROMOTE => checked
-* SKIP_OPERATOR_DEPLOY => checked
-* SKIP_OPERATOR_PROMOTE => checked
### Deploy only Cloud images / Operator
To deploy only the Cloud part, you should start the release pipeline with
those parameters:
-* EXAMPLES_URI => point to `kogito-examples` repository
(https://github.com/apache/incubator-kie-kogito-examples)
-* EXAMPLES_REF => point to current release branch
* SKIP_ARTIFACTS_DEPLOY => checked
* SKIP_ARTIFACTS_PROMOTE => checked
diff --git a/kogito-jenkins-node/image.yaml b/kogito-jenkins-node/image.yaml
deleted file mode 100644
index 1daff008..00000000
--- a/kogito-jenkins-node/image.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
-name: quay.io/kiegroup/kogito-jenkins-node
-version: "1.40.0"
-from: quay.io/openshift/origin-jenkins-agent-base:4.14
-description: Image used by dynamic jenkins agent to build
kogito-cloud-operator using podman
-packages:
- manager: dnf
- install:
- - gcc
- - zlib-devel
- - glibc-devel
- - make
-
-modules:
- repositories:
- - path: modules
- install:
- - name: org.kie.kogito.golang.1.17
- - name: org.kie.kogito.golang.1.19
- - name: org.kie.kogito.graalvm
- version: "22.3"
- - name: org.kie.kogito.maven
- version: "3.8"
- - name: org.kie.kogito.podman
- - name: org.kie.kogito.jenkins-user
- - name: org.kie.kogito.cekit
-run:
- user: 1001
diff --git a/kogito-jenkins-node/modules/cekit/3.8.x/configure
b/kogito-jenkins-node/modules/cekit/3.8.x/configure
deleted file mode 100644
index fb82b027..00000000
--- a/kogito-jenkins-node/modules/cekit/3.8.x/configure
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-
-python3 -m pip install --upgrade pip
-
-pip3 install cekit
\ No newline at end of file
diff --git a/kogito-jenkins-node/modules/cekit/3.8.x/module.yaml
b/kogito-jenkins-node/modules/cekit/3.8.x/module.yaml
deleted file mode 100644
index 55865dbf..00000000
--- a/kogito-jenkins-node/modules/cekit/3.8.x/module.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-name: org.kie.kogito.cekit
-version: "1.0"
-description: "Module used to install cekit and other related dependencies for
cekit to correctly work"
-
-packages:
- manager: dnf
- install:
- - python36-devel
- - gcc
- - krb5-devel
-
-execute:
- - script: configure
\ No newline at end of file
diff --git a/kogito-jenkins-node/modules/golang-installer/1.17.x/install.sh
b/kogito-jenkins-node/modules/golang-installer/1.17.x/install.sh
deleted file mode 100644
index a5c17f84..00000000
--- a/kogito-jenkins-node/modules/golang-installer/1.17.x/install.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-mkdir -p /opt/tools/golang/1.17
-tar -C /opt/tools/golang/1.17 -xf /tmp/artifacts/go.linux-amd64.tar.gz
diff --git a/kogito-jenkins-node/modules/golang-installer/1.17.x/module.yaml
b/kogito-jenkins-node/modules/golang-installer/1.17.x/module.yaml
deleted file mode 100644
index e3ccecb8..00000000
--- a/kogito-jenkins-node/modules/golang-installer/1.17.x/module.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: org.kie.kogito.golang.1.17
-version: "1.17"
-description: "Module used to install golang 1.17"
-envs:
- - name: GOPATH
- value: /home/jenkins/go
- - name: PATH
- value: /home/jenkins/go/bin:$PATH
-artifacts:
- - name: go.linux-amd64.tar.gz
- url: https://dl.google.com/go/go1.17.linux-amd64.tar.gz
- md5: 27e76bdd76bea70b14aacce587aed782
-execute:
- - script: install.sh
\ No newline at end of file
diff --git a/kogito-jenkins-node/modules/golang-installer/1.19.x/install.sh
b/kogito-jenkins-node/modules/golang-installer/1.19.x/install.sh
deleted file mode 100644
index bd287869..00000000
--- a/kogito-jenkins-node/modules/golang-installer/1.19.x/install.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-mkdir -p /opt/tools/golang/1.19
-tar -C /opt/tools/golang/1.19 -xf /tmp/artifacts/go.linux-amd64.tar.gz
diff --git a/kogito-jenkins-node/modules/golang-installer/1.19.x/module.yaml
b/kogito-jenkins-node/modules/golang-installer/1.19.x/module.yaml
deleted file mode 100644
index a0a39773..00000000
--- a/kogito-jenkins-node/modules/golang-installer/1.19.x/module.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: org.kie.kogito.golang.1.19
-version: "1.19"
-description: "Module used to install golang 1.19"
-envs:
- - name: GOPATH
- value: /home/jenkins/go
- - name: PATH
- value: /home/jenkins/go/bin:$PATH
-artifacts:
- - name: go.linux-amd64.tar.gz
- url: https://dl.google.com/go/go1.19.linux-amd64.tar.gz
- md5: 9e1eb306a41b8021f47905ec6ed8a5e1
-execute:
- - script: install.sh
\ No newline at end of file
diff --git a/kogito-jenkins-node/modules/graalvm-installer/22.3/configure
b/kogito-jenkins-node/modules/graalvm-installer/22.3/configure
deleted file mode 100644
index 19175e3a..00000000
--- a/kogito-jenkins-node/modules/graalvm-installer/22.3/configure
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-tar xf /tmp/artifacts/graalvm-ce-linux-amd64.tar.gz -C /usr/share
-mv /usr/share/graalvm-ce-java${GRAALVM_JAVA_VERSION}-${GRAALVM_VERSION}
/usr/share/graalvm
-/usr/share/graalvm/bin/gu install native-image
diff --git a/kogito-jenkins-node/modules/graalvm-installer/22.3/module.yaml
b/kogito-jenkins-node/modules/graalvm-installer/22.3/module.yaml
deleted file mode 100644
index 6d21c7c0..00000000
--- a/kogito-jenkins-node/modules/graalvm-installer/22.3/module.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-name: org.kie.kogito.graalvm
-version: "22.3"
-description: Installing GraalVM-22.3-java-11
-envs:
- - name: "JAVA_HOME"
- value: "/usr/share/graalvm"
- - name: "GRAALVM_HOME"
- value: "/usr/share/graalvm"
- - name: "GRAALVM_VERSION"
- value: "22.3.2"
- - name: "GRAALVM_JAVA_VERSION"
- value: "11"
- - name: PATH
- value: /usr/share/graalvm/bin/:$PATH
-artifacts:
-- name: graalvm-ce-linux-amd64.tar.gz
- url:
https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.3.2/graalvm-ce-java11-linux-amd64-22.3.2.tar.gz
- md5: 68c9e14932ac6c8606953b88aff89cf4
-execute:
-- script: configure
diff --git a/kogito-jenkins-node/modules/jenkins-user/create.sh
b/kogito-jenkins-node/modules/jenkins-user/create.sh
deleted file mode 100644
index 68abbe1c..00000000
--- a/kogito-jenkins-node/modules/jenkins-user/create.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-groupadd -r jenkins -g 1001 && useradd -u 1001 -r -g jenkins -m -d
/home/jenkins -c "jenkins user" jenkins
-
-usermod --add-subuids 10000-75535 jenkins
-usermod --add-subgids 10000-75535 jenkins
diff --git a/kogito-jenkins-node/modules/jenkins-user/module.yaml
b/kogito-jenkins-node/modules/jenkins-user/module.yaml
deleted file mode 100644
index 300088b8..00000000
--- a/kogito-jenkins-node/modules/jenkins-user/module.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
-schema_version: 1
-name: org.kie.kogito.jenkins-user
-version: 1.0
-description: "Creates a regular user that could be used to run services"
-execute:
- - script: create.sh
diff --git a/kogito-jenkins-node/modules/maven-installer/3.8.x/install.sh
b/kogito-jenkins-node/modules/maven-installer/3.8.x/install.sh
deleted file mode 100644
index 981979b0..00000000
--- a/kogito-jenkins-node/modules/maven-installer/3.8.x/install.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-tar -C /usr/local/ -xf /tmp/artifacts/apache-maven-3.8.8-bin.tar.gz
diff --git a/kogito-jenkins-node/modules/maven-installer/3.8.x/module.yaml
b/kogito-jenkins-node/modules/maven-installer/3.8.x/module.yaml
deleted file mode 100644
index 9ccb858d..00000000
--- a/kogito-jenkins-node/modules/maven-installer/3.8.x/module.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
-name: org.kie.kogito.maven
-version: "3.8"
-description: "Module used to install maven 3.8"
-envs:
- - name: "MAVEN_VERSION"
- value: "3.8.8"
- - name: "MAVEN_HOME"
- value: "/usr/local/apache-maven-3.8.8/"
- - name: PATH
- value: /usr/local/apache-maven-3.8.8/bin/:$PATH
-artifacts:
- - name: apache-maven-3.8.8-bin.tar.gz
- url:
https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
- md5: 7b417085cabb71501147ca5411c251c2
-execute:
- - script: install.sh
diff --git a/kogito-jenkins-node/modules/podman/config/containers.conf
b/kogito-jenkins-node/modules/podman/config/containers.conf
deleted file mode 100644
index 8002b657..00000000
--- a/kogito-jenkins-node/modules/podman/config/containers.conf
+++ /dev/null
@@ -1 +0,0 @@
-cgroup_manager="cgroupfs"
\ No newline at end of file
diff --git a/kogito-jenkins-node/modules/podman/module.yaml
b/kogito-jenkins-node/modules/podman/module.yaml
deleted file mode 100644
index b090cbdd..00000000
--- a/kogito-jenkins-node/modules/podman/module.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
-name: org.kie.kogito.podman
-version: "latest"
-description: Setup podman
-
-packages:
- manager: dnf
- install:
- - podman
- - podman-docker
- - buildah
-
-artifacts:
- - name: containers.conf
- path: config/containers.conf
-
-execute:
- - script: updateConfig.sh
diff --git a/kogito-jenkins-node/modules/podman/updateConfig.sh
b/kogito-jenkins-node/modules/podman/updateConfig.sh
deleted file mode 100644
index 3999e733..00000000
--- a/kogito-jenkins-node/modules/podman/updateConfig.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-
-mkdir -p /etc/containers/
-cp /tmp/artifacts/containers.conf /etc/containers/containers.conf
-
-sed -i 's|,metacopy=on||g' /etc/containers/storage.conf
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]