Skip to content

Commit

Permalink
Setup seed to isolate the different configs (#508)
Browse files Browse the repository at this point in the history
* Setup seed to isolate the different configs

Seed library, main config and branch config becomes
independent and can be configured separately in
different locations

* review comments
  • Loading branch information
radtriste authored Jun 27, 2022
1 parent b1df0bc commit 8a74599
Show file tree
Hide file tree
Showing 30 changed files with 1,103 additions and 872 deletions.
288 changes: 0 additions & 288 deletions .ci/jenkins/Jenkinsfile.release.prepare

This file was deleted.

2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.tools.update-quarkus
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pipeline {
// Perform updates
// Not using `readYaml` here to avoid a full reformat of
sh """
sed -i -E "s|(.*quarkus_version:).*|\\1 '${getNewVersionBranch()}'|g" 'dsl/seed/config/branch.yaml'
sed -i -E "s|(.*quarkus_version:).*|\\1 '${getNewVersionBranch()}'|g" 'dsl/config/branch.yaml'
sed -i -E "s|(.*targetExpression:).*(# <quarkus-branch>.*)|\\1 \\"process.env.QUARKUS_BRANCH ? process.env.QUARKUS_BRANCH : '${getNewVersionBranch()}'\\" \\2|g" '.ci/project-dependencies-quarkus.yaml'
"""

Expand Down
2 changes: 1 addition & 1 deletion .ci/jenkins/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
</includes>
</testResource>
<testResource>
<directory>${project.basedir}/../../../dsl/seed/jobs</directory>
<directory>${project.basedir}/../../../dsl/seed/jenkinsfiles</directory>
<includes>
<include>Jenkinsfile*</include>
</includes>
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jenkins-dsl-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- id: setmatrix
run: |
matrixArray=$(./yq eval '.repositories[].name' dsl/seed/config/branch.yaml) # Creates array of all repositories
matrixArray=$(./yq eval '.repositories[].name' dsl/config/branch.yaml) # Creates array of all repositories
# Start Generate Json String
echo "$matrixArray" | \
jq --slurp --raw-input 'split("\n")[:-1]' | \
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ bin/
.factorypath
.settings
.project
.vscode

# Ansible
*.retry
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ Apart from this repository, pipelines are also concerning those repositories:

* [drools](https://github.com/kiegroup/drools)
* [kogito-runtimes](https://github.com/kiegroup/kogito-runtimes)
* [optaplanner](https://github.com/kiegroup/optaplanner)
* [kogito-apps](https://github.com/kiegroup/kogito-apps)
* [kogito-examples](https://github.com/kiegroup/kogito-examples)
* [kogito-images](https://github.com/kiegroup/kogito-images)
* [kogito-operator](https://github.com/kiegroup/kogito-operator)
* [optaplanner](https://github.com/kiegroup/optaplanner)
* [optaweb-employee-rostering](https://github.com/kiegroup/optaweb-employee-rostering)
* [optaweb-vehicle-routing](https://github.com/kiegroup/optaweb-vehicle-routing)
* [optaplanner-quickstarts](https://github.com/kiegroup/optaplanner-quickstarts)
* [kie-tools](https://github.com/kiegroup/kie-tools)

# The different Kogito pipelines

Expand All @@ -59,14 +60,14 @@ This is a set of cleanup utils jobs.

In some of the Kogito repositories, you can find native checks. If that is the case, the pipeline can be found in `.ci/jenkins/Jenkinsfile.native`.

### Quarkus check

A nightly check against Quarkus is done every night. Pipeline can be found in https://github.com/kiegroup/kogito-runtimes/blob/main/.ci/jenkins/Jenkinsfile.quarkus.

### Mandrel check

Quarkus and Native checks are also performed against Mandrel builder image (see config `mandrel.builder_image`).

### Quarkus check

A nightly check against Quarkus is done every night. Pipeline can be found in https://github.com/kiegroup/kogito-runtimes/blob/main/.ci/jenkins/Jenkinsfile.quarkus.

### PR checks

PR checks are using the [build-chain](https://github.com/kiegroup/github-action-build-chain) for artifacts and its configuration can be found in [.ci](./.ci) folder.
Expand All @@ -93,10 +94,12 @@ Jenkins PR checks are of 3 different types:
Test all native parts of the repository
* Mandrel build&test (optional, can be launched with comment `jenkins run mandrel`)
Test against Mandrel builder image
* Quarkus main build&test (optional, can be launched with comment `jenkins run quarkus main`)
* Quarkus main build&test (optional, can be launched with comment `jenkins run quarkus-main`)
Test against quarkus main version
* Quarkus branch build&test (optional, can be launched with comment `jenkins run quarkus branch`)
* Quarkus branch build&test (optional, can be launched with comment `jenkins run quarkus-branch`)
Test against quarkus branch, corresponding to current used Quarkus released version
* Quarkus lts build&test (optional, can be launched with comment `jenkins run quarkus-lts`)
Test against quarkus branch, corresponding to current used Quarkus LTS version

#### GitHub Action checks

Expand Down
Loading

0 comments on commit 8a74599

Please sign in to comment.