Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

kie-issues#574 Initial ASF Jenkins CI Setup #1530

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .ci/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ testsFailed = false

pipeline {
agent {
label 'kogito-jenkins-node && !master'
label 'kogito-jenkins-node && !master' // Running on IBMCLoud jenkins, no change to be done there
}
tools {
go 'golang-1.17'
Expand All @@ -20,7 +20,7 @@ pipeline {
environment {
OPENSHIFT_INTERNAL_REGISTRY = 'image-registry.openshift-image-registry.svc:5000'

CONTAINER_ENGINE = 'podman'
CONTAINER_ENGINE = 'docker'

CODECOV_TOKEN = credentials('KOGITO_OPERATOR_CODECOV_TOKEN')
}
Expand All @@ -32,7 +32,7 @@ pipeline {

sh ' git config --global user.email "[email protected]" '
sh ' git config --global user.name "kie user"'
githubscm.checkoutIfExists('kogito-operator', changeAuthor, changeBranch, 'kiegroup', changeTarget, true, ['token' : 'GITHUB_TOKEN', 'usernamePassword' : 'user-kie-ci10'])
githubscm.checkoutIfExists('incubator-kie-kogito-operator', changeAuthor, changeBranch, 'apache', changeTarget, true, ['token' : 'GITHUB_TOKEN', 'usernamePassword' : 'user-kie-ci10'])
sh "set +x && oc login --token=\$(oc whoami -t) --server=${OPENSHIFT_API} --insecure-skip-tls-verify"
}
}
Expand Down
149 changes: 0 additions & 149 deletions .ci/jenkins/Jenkinsfile-rhpam

This file was deleted.

21 changes: 5 additions & 16 deletions .ci/jenkins/Jenkinsfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,25 @@ gitChanges = false

pipeline {
agent {
label 'kie-rhel8 && podman && kie-mem16g && !built-in'
}

// Needed for local build
tools {
maven env.BUILD_MAVEN_TOOL
jdk env.BUILD_JDK_TOOL
go 'golang-1.17'
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
}
}

options {
timeout(time: 24, unit: 'HOURS') // Give the day to be executed (due to the lock)
}

environment {
// Static env is defined into ./dsl/jobs.groovy file

KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")

CONTAINER_ENGINE = 'podman'
CONTAINER_TLS_OPTIONS = '--tls-verify=false'

JAVA_HOME = "${GRAALVM_HOME}"

PR_BRANCH_HASH = "${util.generateHash(10)}"

// Environment required by OLM tests when run from process
OP_TEST_CONTAINER_OPT = '-t'
OP_TEST_DEBUG = 1
OP_TEST_CONTAINER_TOOL = 'podman'
OP_TEST_CONTAINER_TOOL = 'docker'
}

stages {
Expand Down
17 changes: 5 additions & 12 deletions .ci/jenkins/Jenkinsfile.examples-images.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ testsFailed = false

pipeline {
agent {
label 'kie-rhel8 && docker && kie-mem16g && !built-in'
}

// Needed for local build
tools {
maven env.BUILD_MAVEN_TOOL
jdk env.BUILD_JDK_TOOL
go 'golang-1.17'
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
}
}

options {
Expand All @@ -23,9 +19,7 @@ pipeline {
KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")

CONTAINER_ENGINE = 'docker'
CONTAINER_TLS_OPTIONS = ''

JAVA_HOME = "${GRAALVM_HOME}"
CONTAINER_ENGINE_TLS_OPTIONS = ''
}

stages {
Expand Down Expand Up @@ -92,7 +86,6 @@ pipeline {
script {
try {
// Optaplanner taking a lot of resources, we should not build in parallel
// There seems to be a problem with podman executed from the BDD tests ... Using docker instead for now ...
sh "make build-examples-images concurrent=1 ${getExamplesBuildParameters(true)}"
} catch (err) {
testsFailed = true
Expand Down
11 changes: 6 additions & 5 deletions .ci/jenkins/Jenkinsfile.examples-images.promote
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ helper = null

pipeline {
agent {
label 'rhel8 && podman && !built-in'
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
}
}

options {
Expand All @@ -14,10 +17,8 @@ pipeline {
environment {
KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")

CONTAINER_ENGINE = 'podman'
CONTAINER_TLS_OPTIONS = '--tls-verify=false'

GITHUB_REPO = "${REPO_NAME}" // for github-release cli
CONTAINER_ENGINE = 'docker'
CONTAINER_ENGINE_TLS_OPTIONS = ''
}

stages {
Expand Down
18 changes: 6 additions & 12 deletions .ci/jenkins/Jenkinsfile.profiling
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ helper = null

pipeline {
agent {
label 'kie-rhel8 && podman && kie-mem16g && !built-in'
}

// Needed for local build
tools {
maven env.BUILD_MAVEN_TOOL
jdk env.BUILD_JDK_TOOL
go 'golang-1.17'
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
}
}

options {
Expand All @@ -21,12 +17,10 @@ pipeline {
environment {
KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")

CONTAINER_ENGINE = 'podman'
CONTAINER_TLS_OPTIONS = '--tls-verify=false'
CONTAINER_ENGINE = 'docker'
CONTAINER_ENGINE_TLS_OPTIONS = ''

CODECOV_TOKEN = credentials('KOGITO_OPERATOR_CODECOV_TOKEN')

JAVA_HOME = "${GRAALVM_HOME}"
}

stages {
Expand Down
9 changes: 4 additions & 5 deletions .ci/jenkins/Jenkinsfile.promote
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ helper = null

pipeline {
agent {
label 'rhel8 && podman && !built-in'
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
}
}

options {
Expand All @@ -16,11 +19,7 @@ pipeline {
environment {
KOGITO_CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")

CONTAINER_ENGINE = 'podman'
CONTAINER_TLS_OPTIONS = '--tls-verify=false'

PR_BRANCH_HASH = "${util.generateHash(10)}"
GITHUB_REPO = "${REPO_NAME}" // for github-release cli
}

stages {
Expand Down
9 changes: 4 additions & 5 deletions .ci/jenkins/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ helper = null

pipeline {
agent {
label 'kie-rhel8 && !built-in'
}

tools {
go 'golang-1.17'
docker {
image env.AGENT_DOCKER_BUILDER_IMAGE
args env.AGENT_DOCKER_BUILDER_ARGS
}
}

options {
Expand Down
Loading