Skip to content

Commit 381295e

Browse files
authored
Merge branch 'main' into KOGITO-7453
2 parents 2ef7a3f + e79f1b5 commit 381295e

File tree

2,272 files changed

+91192
-35148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,272 files changed

+91192
-35148
lines changed

.asf.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github:
2+
features:
3+
issues: true

.ci/environments/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Environments CI scripts
2+
3+
This folder contains update scripts which would be called for a specific environments.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
21+
set -euo pipefail
22+
23+
mvn_cmd="mvn ${BUILD_MVN_OPTS:-} ${BUILD_MVN_OPTS_QUARKUS_UPDATE:-}"
24+
25+
source <(curl -s https://raw.githubusercontent.com/apache/incubator-kie-kogito-pipelines/main/dsl/seed/scripts/install_quarkus.sh)
26+
27+
echo "Update project with Quarkus version ${QUARKUS_VERSION}"
28+
29+
set -x
30+
31+
# Update with Quarkus version and commit
32+
${mvn_cmd} \
33+
-Dproperty=quarkus.platform.version \
34+
-DnewVersion=${QUARKUS_VERSION} \
35+
-DgenerateBackupPoms=false \
36+
-Dmaven.wagon.http.ssl.insecure=true \
37+
versions:set-property
38+
39+
${mvn_cmd} \
40+
-Dproperty=quarkus-plugin.version \
41+
-DnewVersion=${QUARKUS_VERSION} \
42+
-DgenerateBackupPoms=false \
43+
-Dmaven.wagon.http.ssl.insecure=true \
44+
versions:set-property

.ci/environments/update.sh

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
#
20+
21+
set -euo pipefail
22+
23+
script_dir_path=$(cd `dirname "${BASH_SOURCE[0]}"`; pwd -P)
24+
25+
environment=$1
26+
shift
27+
28+
if [ -z "${environment}" ]; then
29+
echo "No environment given as first argument"
30+
exit 1
31+
fi
32+
env_path="${script_dir_path}/${environment}"
33+
echo $env_path
34+
if [ ! -d "${env_path}" ]; then
35+
echo "No configuration given for this environment ... Nothing done !"
36+
exit 0
37+
fi
38+
39+
echo "Update project for environment '${environment}'"
40+
41+
# If update script is present, apply it
42+
if [ -f "${env_path}/before.sh" ]; then
43+
echo "Run before script"
44+
sh ${env_path}/before.sh $@
45+
fi
46+
47+
# Apply patches if any
48+
patches_path="${env_path}"/patches
49+
if [ -d ${patches_path} ]; then
50+
for patch_file in "${patches_path}"/*
51+
do
52+
echo "Apply git patch ${patch_file}"
53+
git apply ${patch_file}
54+
done
55+
else
56+
echo 'No patch to apply'
57+
fi
58+
59+
# If update script is present, apply it
60+
if [ -f "${env_path}/after.sh" ]; then
61+
echo "Run after script"
62+
sh ${env_path}/after.sh
63+
fi
64+
65+
# Download `setup_integration_branch` script and execute
66+
curl -s https://raw.githubusercontent.com/apache/incubator-kie-kogito-pipelines/main/dsl/seed/scripts/setup_integration_branch.sh | bash

.ci/jenkins/Jenkinsfile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@Library('jenkins-pipeline-shared-libraries')_
2+
3+
pr_check_script = null
4+
5+
pipeline {
6+
agent {
7+
label util.avoidFaultyNodes('ubuntu')
8+
}
9+
options {
10+
timestamps()
11+
timeout(time: 480, unit: 'MINUTES')
12+
disableConcurrentBuilds(abortPrevious: true)
13+
}
14+
environment {
15+
BUILDCHAIN_PROJECT = 'apache/incubator-kie-kogito-examples'
16+
17+
KOGITO_EXAMPLES_BUILD_MVN_OPTS = '-Dvalidate-formatting'
18+
}
19+
stages {
20+
stage('Initialize') {
21+
steps {
22+
script {
23+
// load `pr_check.groovy` file from kogito-pipelines:main
24+
dir('kogito-pipelines') {
25+
checkout(githubscm.resolveRepository('incubator-kie-kogito-pipelines', 'apache', 'main', false, 'ASF_Cloudbees_Jenkins_ci-builds'))
26+
pr_check_script = load 'dsl/scripts/pr_check.groovy'
27+
}
28+
}
29+
}
30+
}
31+
stage('PR check') {
32+
steps {
33+
script {
34+
dir('kogito-pipelines') {
35+
pr_check_script.launch()
36+
}
37+
}
38+
}
39+
}
40+
}
41+
post {
42+
cleanup {
43+
cleanWs()
44+
}
45+
}
46+
}

0 commit comments

Comments
 (0)