This is an automated email from the ASF dual-hosted git repository.
jstastnycz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-docs.git
The following commit(s) were added to refs/heads/main by this push:
new a3d41e6dd kie-issues#574 Initial ASF Jenkins CI Setup (#504)
a3d41e6dd is described below
commit a3d41e6ddcdecc82da6eb7b2b6e6ada11113bd17
Author: Jan Stastny <[email protected]>
AuthorDate: Tue Sep 19 20:23:07 2023 +0200
kie-issues#574 Initial ASF Jenkins CI Setup (#504)
Co-authored-by: radtriste <[email protected]>
---
.ci/jenkins/Jenkinsfile.post-release | 14 ++------------
.ci/jenkins/Jenkinsfile.setup-branch | 18 ++++--------------
.ci/jenkins/dsl/jobs.groovy | 4 ++--
.ci/jenkins/dsl/test.sh | 2 +-
.github/pull_request_template.md | 2 +-
.github/workflows/jenkins-tests-PR.yml | 4 ++--
6 files changed, 12 insertions(+), 32 deletions(-)
diff --git a/.ci/jenkins/Jenkinsfile.post-release
b/.ci/jenkins/Jenkinsfile.post-release
index f6e5b42ea..9f87cc128 100644
--- a/.ci/jenkins/Jenkinsfile.post-release
+++ b/.ci/jenkins/Jenkinsfile.post-release
@@ -4,11 +4,7 @@ import org.jenkinsci.plugins.workflow.libs.Library
pipeline {
agent {
- label 'rhel8 && !built-in'
- }
-
- tools {
- nodejs 'nodejs-16.2.0'
+ label 'ubuntu'
}
options {
@@ -16,13 +12,7 @@ pipeline {
timeout(time: 60, unit: 'MINUTES')
}
- // parameters {
- // For parameters, check into .jenkins/dsl/jobs.groovy file
- // }
-
environment {
- // Some generated env is also defined into .jenkins/dsl/jobs.groovy
file
-
CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")
}
@@ -48,7 +38,7 @@ pipeline {
script {
dir("kogito-docs-${getBuildBranch()}") {
deleteDir()
- checkout(githubscm.resolveRepository('kogito-docs',
getGitAuthor(), getBuildBranch(), false, getGitAuthorCredsID()))
+
checkout(githubscm.resolveRepository('incubator-kie-kogito-docs',
getGitAuthor(), getBuildBranch(), false, getGitAuthorCredsID()))
sh "git checkout ${getBuildBranch()}"
String antoraFile = 'serverlessworkflow/antora.yml'
diff --git a/.ci/jenkins/Jenkinsfile.setup-branch
b/.ci/jenkins/Jenkinsfile.setup-branch
index b8ea44b60..7b2bc63e2 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -4,11 +4,7 @@ import org.jenkinsci.plugins.workflow.libs.Library
pipeline {
agent {
- label 'kie-rhel8 && !built-in'
- }
-
- tools {
- nodejs 'nodejs-16.2.0'
+ label 'ubuntu'
}
options {
@@ -16,13 +12,7 @@ pipeline {
timeout(time: 60, unit: 'MINUTES')
}
- // parameters {
- // For parameters, check into .jenkins/dsl/jobs.groovy file
- // }
-
environment {
- // Some generated env is also defined into .jenkins/dsl/jobs.groovy
file
-
CI_EMAIL_TO = credentials("${JENKINS_EMAIL_CREDS_ID}")
}
@@ -51,14 +41,14 @@ pipeline {
dir("kogito-docs-${getBuildBranch()}") {
deleteDir()
- checkout(githubscm.resolveRepository('kogito-docs',
getGitAuthor(), getBuildBranch(), false, getGitAuthorCredsID()))
+
checkout(githubscm.resolveRepository('incubator-kie-kogito-docs',
getGitAuthor(), getBuildBranch(), false, getGitAuthorCredsID()))
sh "git checkout ${getBuildBranch()}"
String[] branchSplit = getBuildBranch().split("\\.")
String displayVersion =
"${branchSplit[0]}.${branchSplit[1]}-RC"
String version =
"${branchSplit[0]}.${branchSplit[1]}.0-SNAPSHOT"
String prereleaseStr = 'rc'
- String swExamplesURL =
"https://github.com/kiegroup/kogito-examples/tree/${getBuildBranch()}/serverless-workflow-examples"
+ String swExamplesURL =
"https://github.com/apache/incubator-kie-kogito-examples/tree/${getBuildBranch()}/serverless-workflow-examples"
String antoraFile = 'serverlessworkflow/antora.yml'
String operatorVersion = "${getBuildBranch()}"
@@ -87,7 +77,7 @@ pipeline {
script {
dir('kogito-docs') {
deleteDir()
- checkout(githubscm.resolveRepository('kogito-docs',
getGitAuthor(), 'main', false, getGitAuthorCredsID()))
+
checkout(githubscm.resolveRepository('incubator-kie-kogito-docs',
getGitAuthor(), 'main', false, getGitAuthorCredsID()))
sh 'git checkout main'
updateYaml('antora-playbook.yml') { antoraConfig ->
diff --git a/.ci/jenkins/dsl/jobs.groovy b/.ci/jenkins/dsl/jobs.groovy
index b7463b222..bdc3106aa 100644
--- a/.ci/jenkins/dsl/jobs.groovy
+++ b/.ci/jenkins/dsl/jobs.groovy
@@ -2,10 +2,10 @@
* This file is describing all the Jenkins jobs in the DSL format (see
https://plugins.jenkins.io/job-dsl/)
* needed by the Kogito pipelines.
*
-* The main part of Jenkins job generation is defined into the
https://github.com/kiegroup/kogito-pipelines repository.
+* The main part of Jenkins job generation is defined into the
https://github.com/apache/incubator-kie-kogito-pipelines repository.
*
* This file is making use of shared libraries defined in
-*
https://github.com/kiegroup/kogito-pipelines/tree/main/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl.
+*
https://github.com/apache/incubator-kie-kogito-pipelines/tree/main/dsl/seed/src/main/groovy/org/kie/jenkins/jobdsl.
*/
import org.kie.jenkins.jobdsl.model.JobType
diff --git a/.ci/jenkins/dsl/test.sh b/.ci/jenkins/dsl/test.sh
index ad8af34ac..2d518eb9f 100755
--- a/.ci/jenkins/dsl/test.sh
+++ b/.ci/jenkins/dsl/test.sh
@@ -1,6 +1,6 @@
#!/bin/bash -e
file=$(mktemp)
# For more usage of the script, use ./test.sh -h
-curl -o ${file}
https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/dsl/seed/scripts/seed_test.sh
+curl -o ${file}
https://raw.githubusercontent.com/apache/incubator-kie-kogito-pipelines/main/dsl/seed/scripts/seed_test.sh
chmod u+x ${file}
${file} $@
\ No newline at end of file
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index b8f847c1b..29492e695 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -8,7 +8,7 @@
Please make sure that your PR meets the following requirements:
-- [ ] You have read the [contributions
doc](https://github.com/kiegroup/kogito-docs/blob/main/CONTRIBUTING.md)
+- [ ] You have read the [contributions
doc](https://github.com/apache/incubator-kie-kogito-docs/blob/main/CONTRIBUTING.md)
- [ ] Pull Request title is properly formatted: `KOGITO-XYZ Subject`
- [ ] Pull Request title contains the target branch if not targeting main:
`[0.9.x] KOGITO-XYZ Subject`
- [ ] The nav.adoc file has a link to this guide in the proper category
diff --git a/.github/workflows/jenkins-tests-PR.yml
b/.github/workflows/jenkins-tests-PR.yml
index bf3815cbc..324a2deb1 100644
--- a/.github/workflows/jenkins-tests-PR.yml
+++ b/.github/workflows/jenkins-tests-PR.yml
@@ -17,6 +17,6 @@ jobs:
- name: DSL tests
uses: kiegroup/kie-ci/.ci/actions/dsl-tests@main
with:
- main-config-file-repo: kiegroup/kogito-pipelines
+ main-config-file-repo: apache/incubator-kie-kogito-pipelines
main-config-file-path: .ci/jenkins/config/main.yaml
- branch-config-file-repo: kiegroup/kogito-pipelines
+ branch-config-file-repo: apache/incubator-kie-kogito-pipelines
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]